commit | 8ae77be5910c1f8afaf698ba4ca7d1734487cf57 | [log] [tgz] |
---|---|---|
author | Justin Lebar <justin.lebar@gmail.com> | Sun Apr 11 20:35:00 2021 -0700 |
committer | Justin Lebar <jlebar@google.com> | Sun Apr 11 20:35:00 2021 -0700 |
tree | 5a0b8334c504ca163ac51825e6acd4c96df3a9fb | |
parent | 9f85729fdbafefa1e1caec3775c648a5f6a25c7d [diff] |
Generate more slice colors. This change aims to decrease the probability of a "color collision" by increasing the range of colors we can generate. Before this change, Perfetto would choose a uniformly random hue and use a fixed saturation and lightness. It would then convert this to RGB using the browser's built-in HSL conversion. After this change, we allow the hue and lightness to vary, thus adding another degree of freedom to our color choices. We also use HSLuv to convert from h/s/l to RGB. HSLuv is "perceptually uniform", so it "spreads out" our random hue/lightness uniformly across the range of human vision. Vanilla HSL is not perceptually uniform. Change-Id: Ie5527c5eaf0e62b7f7706353b95789260f59cc0d
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.