commit | 57a9d4e320c54b341dfaf13a883bdd261e3b4f77 | [log] [tgz] |
---|---|---|
author | Steve Golton <stevegolton@google.com> | Tue Dec 12 08:43:38 2023 +0000 |
committer | Steve Golton <stevegolton@google.com> | Tue Dec 12 08:44:22 2023 +0000 |
tree | 188da654be2ebfd769a22492bb662082bf82c56b | |
parent | fa59d7989d624785db9b505e1832854bb7ff7431 [diff] |
[ui] Pass canvas size into Track.render() functions. - Pass a |PanelSize| object into each Track.render() and renderCanvas() calls which defines the size of the renderable area on the canvas. - Avoid using |timeScale.hpTimeToPx(vizTime.[start|end])| to calc canvas size. - Avoid use of |frontendLocalState.windowSpan| where possible. Note: mouse event hooks and getSliceRect() don't get passed canvas size yet, so they still need to access windowSpan. This will be fixed in a future CL. Change-Id: Iebc9164cb87fadf93baac5efb9f75809254b9211
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.