ARM-software / gator

Sources for Arm Streamline's gator daemon, part of Arm Mobile Studio suite of performance analysis tools
https://www.arm.com/products/development-tools/graphics/arm-mobile-studio
133 stars 70 forks source link

How to get gpu usage and frequency in Android 10+ #24

Closed ylz-at closed 2 years ago

ylz-at commented 3 years ago

For GPU usage, described in https://developer.arm.com/ip-products/graphics-and-multimedia/mali-gpus/mali-performance-counters/mali-g76-counters

bengaineyarm commented 3 years ago

Hi

GPU Activity and Clock frequency requires access to certain data which is only accessible to gator when running as root (so requires an engineering build of Android, or a rooted device).

Also, not all hardware vendors enable to appropriate settings in the Mali GPU driver / platform integration to output this data, so even if you have a rooted device, you may not see these counters.