commit | 189a8de1d4d18bf1d11f32d6cfee84aab323231f | [log] [tgz] |
---|---|---|
author | Steve Golton <stevegolton@google.com> | Wed Nov 20 16:54:47 2024 +0000 |
committer | Steve Golton <stevegolton@google.com> | Wed Nov 20 17:14:18 2024 +0000 |
tree | 6da14dc01b40d5fd0cd5f6c2d6c1d2fdeb6c639a | |
parent | c17c04997affa2c1e8174ad3fa94af9bbd2892cd [diff] |
ui: Use plugin deps to add tracks to process groups Currently, plugins that add tracks to process or track groups get access to the group by looking up these groups via their well known ids. The problem is getTrackById isn't particularly efficient and is called frequently during trace load. This CL switches to using plugin dependencies to solve the issue of multiple plugins adding to a shared group instead. We have the ProcessThreadGroups plugin which exposes a getGroupForProcess and getGroupForThread method. Other plugins can use these methods to look up the correct group for their track, and the dependencies list means that that this plugin is run before any dependent plugin so these groups are guraranteed to exist by the time the dependent plugins are run. Change-Id: Ic1c3e077c2fbe7f145401c361e5e408a4da7a908
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.