Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use colors more effectively #198

Open
djahandarie opened this issue Apr 6, 2022 · 1 comment
Open

Use colors more effectively #198

djahandarie opened this issue Apr 6, 2022 · 1 comment

Comments

@djahandarie
Copy link

Right now colors are selected at random within a color palette. This primarily accomplishes the following goals: (1) making the flamegraph look pretty and (2) making boxes visually distinct from each other.

However, colors are a very wide dimension, so a lot of information can be stored in them. This is one of the core principles of visualization.

Some things that interest me are:

  1. hue by thread
  2. hue by whether it was in the kernel or userspace
  3. brightness by self usage%

(Yes some of these things are already encoded in textual or spacial dimensions, but color allows for far faster skimming and overall summarization and searching tasks.)

There is probably other information of interest as well, so I hope this issue attracts some attention to build a list up of more things that would be useful to encode into color.

@djc
Copy link
Contributor

djc commented Apr 7, 2022

flamegraph is basically glue between running perf or dtrace and generating a flamegraph using the inferno crate. I think this issue would be more appropriate for the inferno crate, as flamegraph doesn't have much influence on how this is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants