| commit | 8ef341eead6c35b2ab2ec4ace8a6824afb614999 | [log] [tgz] |
|---|---|---|
| author | Steve Golton <stevegolton@google.com> | Wed May 07 20:28:05 2025 +0100 |
| committer | GitHub <noreply@github.com> | Wed May 07 12:28:05 2025 -0700 |
| tree | 85db84f3779378196eb291240d61f2b3c3adeb62 | |
| parent | e47df5db8eee12e05b4f89a3acf773af9e0f8a95 [diff] |
Fix crash in heap profile auto-selection at trace load time (#1435) https://buganizer.corp.google.com/issues/416190258 When loading a trace with heap profile tracks, we automatically select the earliest heap profile sample on trace load. We currently assume that this event has id = 0, but this is not necessarily the case. This change refactors the queries in the heap profile plugin to make things a lot clearer, as it was getting out of control, and also fixes the bug so that it works out the necessary event id properly. This change also refactors the selection logic in SelectionManager a little to make the error message clearer and to ease debugging in the future.
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.