google/pprof

SVG heap graph inconvenient for color blind

pavelpatrin opened this issue · 3 comments

What version of pprof are you using?

Pprof from Go 1.20.

What operating system and processor architecture are you using?

MacOS with M2 proccessor.

What did you do?

Analyzing SVG graph of heap.

What did you expect to see?

Convenient, understandable colors, e.g. Red-Blue color schema.

What did you see instead?

Indistinguishable Red-Green color schema.

From my side

There are an estimated 300 million people in the world with color vision deficiency. 1 in 12 men are color blind (8%). 1 in 200 women are color blind (0.5%). It is significant. Please thing about changing the color schema to get rid of red-green differences.

For example, colors that I cant see.

image

And for example, great colors for me.

Screenshot 2023-04-12 at 20 09 31

#ede6e0 -> #cdcdf0
#b28356 -> #5683b2

And even better, replace red with orange!

@pavelpatrin Thanks for the report. If the code change for this is simple so that you can prepare a PR, feel free to send it and we can review it.