commit | 13640983e34757043e4133cd9feb29d318fab6dc | [log] [tgz] |
---|---|---|
author | Chinglin Yu <chinglinyu@google.com> | Thu Dec 09 19:07:59 2021 +0800 |
committer | Chinglin Yu <chinglinyu@google.com> | Thu Dec 09 19:07:59 2021 +0800 |
tree | 92f66a7cd9d9d0d637a5eb350df076888f26726b | |
parent | ec0150cefe9e5697f09c805564ea2608909879ab [diff] |
trace_processor: extract actual argv0 from Chrome cmdline Chrome child processes overwrites /proc/self/cmdline and replaces all '\0' with ' ', which makes argv0 contain the full cmdline. This makes the UI display incorrect and unusably long track group names. This change adds a heuristics in the trace processor by looking for "/chrome " in argv0 and extracts the actual argv0 for Chrome processes. Bug: 208788164 Change-Id: I869d6a08d5aa6cd82b54f87a064a4694eb108d16
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.