| commit | ada8a49b125a69077c0a663df97e87dfd04c5d26 | [log] [tgz] |
|---|---|---|
| author | Ryan Savitski <rsavitski@google.com> | Wed Jan 10 20:04:02 2024 +0000 |
| committer | Ryan Savitski <rsavitski@google.com> | Wed Jan 10 20:04:02 2024 +0000 |
| tree | 633ae97197d6227837ed90e1c888f8eb4645c81c | |
| parent | d2981515dfa69943678706c808ca24d08369de78 [diff] |
tp: fix perf.data parsing (overall and for multi-attr case) Firstly, r.android.com/2817619 broke the file loading by missing a break statement. Secondly, |ReadVectorFromBuffer| was incorrectly CHECKing that each read request consumed the whole id section. This holds only for files with a single event type, as there's one id array per event type. Found while trying to load a file with two events (from perf report -D --header-only): event : name = cycles:P, ... event : name = dummy:HG, ... After the patch, the file loads and looks plausible, but that's as far as I've checked. Change-Id: I388756ab33c0ece6e37719b7025028a16af20eaf
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.