google / agi

Android GPU Inspector
https://gpuinspector.dev
Apache License 2.0
944 stars 138 forks source link

Mali GPU Performance Counter Monitoring #1338

Open hosunhc opened 8 months ago

hosunhc commented 8 months ago

Hi, I was just wondering what setups are required to be able to monitor the GPU counters for Mali devices. Using the AGI tool, I'm able to easily gather performance counters, but if i take the configuration file and try to monitor counters using Perfetto, I am unable to do so. The perfetto discord group indicated to check these lines of codes and add them to my script: https://github.com/google/agi/blob/95af8ad4c093465c0f1e74fa05c9cc3802594fa9/core/os/android/adb/commands.go#L561 I used the command adb shell setprop gpuDebugProperty 1 However, I wasn't able to get the result that I wanted. Are there any other requirements that are needed before I choose to monitor performance counters? Or am i setting the system properties incorrectly Thanks!