Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History chart #50

Open
diegoasanch opened this issue Nov 8, 2024 · 1 comment
Open

History chart #50

diegoasanch opened this issue Nov 8, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@diegoasanch
Copy link

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

  1. Getting the data: this can be achieved by converting systemStats into an array (SystemStats[]) and storing there the last N stats from the getProcesses result. N can be calculated as timeWindowSize / refreshRate
  2. 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

@diegoasanch diegoasanch added the enhancement New feature or request label Nov 8, 2024
@Abdenasser Abdenasser self-assigned this Nov 8, 2024
@alejlatorre
Copy link

This would be super useful! I have been using btop because of this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants