While the most useful way to use ProfilingManager
is to collect profiles from
your public users, you might first need to debug your setup or record local
profiles for investigations. You might have noticed that profiles are sometimes
not recorded, often due to rate limiting. For more information, see How rate
limiting works.
You can adjust specific debug settings on your local device using adb
commands. The following settings are available to assist with local profiling.
Disable the rate limiter
The following command is particularly useful when using ProfilingManager
locally. It disables both the app process and system rate limiters, instructing
ProfilingManager
to fulfill all profile requests without being throttled.
adb shell device_config put profiling_testing rate_limiter.disabled true
Retain unredacted traces
The following command lets you retain unredacted versions of traces in the
temporary directory located at
/data/misc/perfetto-traces/profiling/<trace-name>.perfetto-trace-unredacted
.
Unredacted traces provide more system-level information than redacted traces,
which can be crucial for in-depth investigations.
adb shell device_config put profiling_testing delete_temporary_results.disabled true
For privacy reasons, this feature is only available for local profiling and is disabled by default.