Description
Is your feature request related to a problem? Please describe.
The StatsBar
gives great insight into the current state of the system, however I would like to view a history of this state over time to better understand when something changed (e.g. a recently opened process ramping up the CPU usage)
Describe the solution you'd like
A chart view for the CPU and Memory usage, similar to the one in MacOS' Activity monitor or Window's Task Manager; having the option to switch between the current list view and the new chart view.
The time-window size can either be agreed upon and made a constant or user-selectable
Describe alternatives you've considered
- Getting the data: this can be achieved by converting
systemStats
into an array (SystemStats[]) and storing there the lastN
stats from the getProcesses result.N
can be calculated astimeWindowSize / refreshRate
- Rendering the data: using a charting lib like Chart.js or ECharts
Additional context
I want to implement this myself, but I want to first get the idea on the right track so any suggestions are welcome