arl / statsviz

🚀 Visualise your Go program runtime metrics in real time in the browser
MIT License
3.19k stars 121 forks source link

[feature] allow to hide plots or plot groups #109

Open arl opened 1 year ago

arl commented 1 year ago

With recent go1.20 and go1.21 metrics, the number of plots is starting to be important.

I think users would benefit from a way to hide and show

  1. each plot would be associated to a category tag, and the dashboard would have a new widgets, allowing to select the hide/show plot categories.

  2. on top of each plot there would be a collapse icon (an arrow maybe?) allowing the user to disable a plot.

In addition when a plot is now shown, its plot would not be updated, even though it's circular buffer would continue to get updated, so that when a plot is suddenly activated, its visualized data immediately catches up the plots that remained visible.

mzzsfy commented 8 months ago

I really need this function. I added a lot of userPlots (more than 20), and the page became very stuck. Sometimes the page would appear oom.

arl commented 8 months ago

I agree this is an important feature. If anybody wants to try contributing, I can help and/or mentor.

Furthermore this is a relatively easy feature to implement.

We can discuss on the #statsviz channel on gopher's slack