commit | fe05b818b24e52417ed2f36d9bbe56914a772bb0 | [log] [tgz] |
---|---|---|
author | Chinglin Yu <chinglinyu@google.com> | Thu Nov 14 16:58:50 2024 +0800 |
committer | Chinglin Yu <chinglinyu@google.com> | Thu Nov 14 16:58:50 2024 +0800 |
tree | 553b3febc1b3c85ac0b2076c4e8cdf9d4b07536d | |
parent | 819d1a768426dfa7830a0a38fa56dc5972e7cd14 [diff] |
tp: fix kernel idle tasks for boot-time traces In boot-time traces, CPU scheduling tracks contain "swapper/0" tasks, which should be hidden on the UI. These idle tasks show up because kernel startup traces contain the following events: event { timestamp: 17000000 pid: 1 task_newtask { pid: 0 comm: "swapper/0" clone_flags: 256 oom_score_adj: 0 } } that /sbin/init creates more swapper/0 kernel idle tasks with pid/tid == 0. Filter these task_newtask events since they do not create real new threads. Bug: 379009092 Change-Id: I556e085e35ca622fcfee7a3b5122f853eead05ea
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.