commit | c17c04997affa2c1e8174ad3fa94af9bbd2892cd | [log] [tgz] |
---|---|---|
author | Steve Golton <stevegolton@google.com> | Wed Nov 20 16:38:05 2024 +0000 |
committer | Steve Golton <stevegolton@google.com> | Wed Nov 20 17:09:42 2024 +0000 |
tree | bbc4a07113dbe43200fa0195c4a0a3ccbf6a98ab | |
parent | 2461694c5a7120488a29d78b5f4243ffc124fbd9 [diff] |
ui: Don't render tracks while the trace is loading Since changing to the new workspace API, the tracks now get displayed while the moment they are added and before they are grouped. This can lead to the trace loads being slower as: - Tracks's onCreate hooks are called as they momentarily appear on screen which can kick off expensive queries that we don't even see. - We can end up with a lot of track DOM elements before grouping happens which can lead to slow DOM redraws. This CL just hides all tracks until the trace has fully loaded (i.e. all plugins have completed their onTraceLoad() hooks, which emulates the prior behavior and speed up loading significantly. Change-Id: I69b8ec0de1dfaf1ccd174baf1ff0c32385e4ba4c
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.