commit | 2d7fec474a5b70d2426ad2e9c01d0d4d4110a2ab | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Fri Oct 25 16:31:21 2024 +0100 |
committer | Primiano Tucci <primiano@google.com> | Fri Oct 25 16:31:21 2024 +0100 |
tree | d2311fab4ebc45dc7a6337a93e1e8d6c2e9ed76a | |
parent | fbccf9938cd3e7864e3ee7a503c7171ea6aa1984 [diff] |
ui: remove JobStatusUpdate and simplify sidebar logic This CL simplifies the way deferred conversion jobs are handled AND the sidebar code. The end user feature is the following: some of the actions accessible by the sidebar (convert to json or legacy ui) take several seconds and are offloaded to a worker. Today we show a spinner on the sidebar when these are in progress. Today the way the progress tracking works involves a lot of plumbing all over the places (globals, publish, etc). Instead I'm changing this as follows: - I rewrote the long conversion operations as promises, which resolve when the conversion is done (which is notified by a postmessage from the dedicated worker) - I updated the spinner logic in the sidebar to apply to any case when the action of the menu item returns a promise. This removes a lot of special-case handling for those spinners. Change-Id: I41fc99be10cb789d230551220da66b0f00db7531
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.