bloomberg / memray

Memray is a memory profiler for Python
https://bloomberg.github.io/memray/
Apache License 2.0
13.24k stars 394 forks source link

Dark Mode for Flame graph reports #650

Open jcarnaxide opened 2 months ago

jcarnaxide commented 2 months ago

Is there an existing proposal for this?

Is your feature request related to a problem?

I have an issue when looking at Flame graphs, especially in a dark room, and would like to reduce white light to my eyes.

Describe the solution you'd like

I would love if generated Flame graphs had some sort of toggle at the top of the HTML file which could switch between Light/Dark mode.

Something else to consider would be to attempt to read the machine default value for Light/Dark mode, and initializing Flame graphs to this value.

Alternatives you considered

There are some plugins out there that attempt to auto convert web pages out there that don't support Dark Mode. I am not sure that I have tried one of these with a flame graph, but I could give it a whirl if we think it's worth it.

pablogsal commented 2 months ago

Are you interested in contributing this feature @jcarnaxide ?

jcarnaxide commented 2 months ago

Yes I would be interested in contributing this @pablogsal