Unable to display GPU frequency

262 views
Skip to first unread message

Dopezhi

unread,
Dec 30, 2022, 2:53:29 AM12/30/22
to Perfetto Development - www.perfetto.dev
Recently, I found that when capturing perfetto trace on Android12, even though I ticked the capture GPU frequency when I started capturing, the GPU frequency still cannot be displayed.

Is there something wrong with the way I did it or is it not showing up for some reason now?

Lalit Maganti

unread,
Dec 30, 2022, 8:33:37 AM12/30/22
to Dopezhi, Perfetto Development - www.perfetto.dev
The GPU frequency event is not standardised across Android so it's likely that the device you are using to test this on either: a) doesn't emit this event b) emits this event in a different way that Perfetto doesn't now how to collect/interpret.

We can only guarantee that the events work as intended on Pixels. On non-Pixel devices, it's really up to the manufacturer (or a user with the appropriate device) to contribute to Perfetto and add support for dealing with the device specific events.

On Fri, 30 Dec 2022 at 07:53, Dopezhi <dop...@gmail.com> wrote:
Recently, I found that when capturing perfetto trace on Android12, even though I ticked the capture GPU frequency when I started capturing, the GPU frequency still cannot be displayed.

Is there something wrong with the way I did it or is it not showing up for some reason now?

--
You received this message because you are subscribed to the Google Groups "Perfetto Development - www.perfetto.dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfetto-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/perfetto-dev/96925e17-7f8e-412c-af39-179695841816n%40googlegroups.com.

Dopezhi

unread,
Jan 2, 2023, 9:57:27 PM1/2/23
to Perfetto Development - www.perfetto.dev
Thank you for your answer. If I want to display the GPU frequency for my specific Android machine, how should I do it?

Lalit Maganti

unread,
Jan 3, 2023, 9:52:46 AM1/3/23
to Dopezhi, Perfetto Development - www.perfetto.dev
You'll need to perform some digging to see what ftrace event gives you the GPU frequency data (it may or may not exist). Once you've done that you can follow the process at https://perfetto.dev/docs/contributing/common-tasks#add-a-new-ftrace-event to add the ability for Perfetto to collect this event.

Dopezhi

unread,
Jan 3, 2023, 9:18:45 PM1/3/23
to Perfetto Development - www.perfetto.dev
Thanks for your answer, much appreciated.
Reply all
Reply to author
Forward
0 new messages