ui: Fix 1ns event rendering The previous logic to round resolution up to the nearest multiple of the resolution was flawed, and made 1ns long slices render as 2ns long blocks. This CL changes the logic to work properly for 1ns slices, while maintaining the same rounding logic to avoid rendering artifacts. ``` Before: ((dur / res) + 1) * res After: ((dur + (res - 1)) / res) * res ``` Change-Id: Ic23b956cfc896c7d4de42d9d3f2878d80aa62a89
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.