Netflix / flamescope

FlameScope is a visualization tool for exploring different time ranges as Flame Graphs.
Apache License 2.0
3k stars 168 forks source link

"enhanced", higher contrast color palette on heatmap #4

Closed spiermar closed 6 years ago

brendangregg commented 6 years ago

It would be great to have an "Enhance" button that switched to a palette like this, based on count:

The aim is to highlight single-threaded activity, which will either have a count of 1 (eg, 49 Hertz sampling on a 50 row heatmap) or 2 (99 Hertz sampling on a 50 row heatmap). Hence making 1 & 2 blue, and the rest shades of red.

Here is an example. This is application startup, which includes many single-threaded stages. Since they have low counts in the columns, they are almost white in the default profile.

screen shot 2018-04-04 at 11 46 08 am

Imagine an "Enhance" button that then switched to the low-count highlighting palette:

screen shot 2018-04-04 at 11 50 19 am

That looks ok (the blue goes beyond a 1-2 count in this mock up, which it shouldn't). I'd resist adding more colors to this (think weather radar maps) since it can become visually ugly. Keep it simple. Blue, then a red scale.

This should be easy to do. See the colorScale() function in the heat map.

ceeaspb commented 6 years ago

We also get feint colors; I wanted to explore the single color.

screen shot 2018-04-09 at 18 26 05 screen shot 2018-04-09 at 18 26 49 screen shot 2018-04-09 at 18 30 23
spiermar commented 6 years ago

@brendangregg assuming this is closed.

brendangregg commented 6 years ago

@ceeaspb that's a pretty interesting profile. How does it look with the new "Enhance Colors" button? Maybe so interesting it deserves a blog post. :)

ceeaspb commented 6 years ago

@brendangregg sorry combination of holiday and been busy - I wasn't sure at first but yes it looks great with the enhanced palette! And yes I need to work on my blog writing skills :) The handful of really intense cpu activity pixels was perf itself, which I should probably ask about on perf-users.