commit | 60061c4339641bad2a399fc77add97f6948e5d91 | [log] [tgz] |
---|---|---|
author | Christopher Phlipot <cphlipot@fb.com> | Mon Jun 27 16:42:03 2022 -0700 |
committer | Christopher Phlipot <cphlipot@fb.com> | Mon Jun 27 16:42:03 2022 -0700 |
tree | 3b1757b52706acf1d86bfaab611ba45615256171 | |
parent | 4d2a825326de4078f54adf4035ba2eff9901a052 [diff] |
[ui] Sort processes by number of perf samples When the user runs ./tools/cpu_profile -n <app>, there will be a process track group for every process on the system, but only one will actually contain the perf samples the user requested. Sort all processes by number of perf samples so that the process the user is likely most interested when doing CPU profiling will appear at the top and be easy to find. Testing: Collect a cpu profile using ./tools/cpu_profile -n <app> verify that the profiled app appears at the top after the trace is opened. Change-Id: Iaf2419ac6369baa5326a413b9e0612c502c91004
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.