perfetto
is a tool that lets you collect performance information from Android devices via the Android Debug Bridge (ADB). Invoke the perfetto
tool using the adb shell perfetto ...
command. perfetto
uses various sources to collect performance traces from your device, such as:
ftrace
for information from the kernelatrace
for user-space annotation in services and appsheapprofd
for native memory usage information of services and apps
This page describes how to call perfetto
and configure it to generate the desired output. For further information, refer to the perfetto
documentation.