bottom icon indicating copy to clipboard operation
bottom copied to clipboard

Charting CPU/memory for a single process

Open sleepycat opened this issue 4 years ago • 2 comments

Describe the feature request

Currently all the beautiful charts showing change over time appear to be for the system as a whole with no equivalent when looking at a single process. Screenshot from 2021-10-19 17-54-39

When a single process is selected, having the charts and graphs update to show historic CPU/Memory usage only for that single process/group would be very helpful.

Judging from this question on stackexchange, it seems there is interest in such a thing, and so far there isn't really a satisfying answer. Is this already possible with btm and I just couldn't figure it out? Is this feasible/interesting to add to btm?

sleepycat avatar Oct 19 '21 22:10 sleepycat

First, a general answer - I think bpytop (and it's successors) might be what you are looking for, they have this feature already.


It's not possible as of yet, but it would certainly be an interesting idea to consider and work on.

However, one area I'm personally not sure about would be the actual user experience for this sort of feature. Should it replace the system's total CPU/memory widgets' data? Or would it maybe be better to create new graphs for specifically that process? For the latter, maybe something like being able to press a key to open an additional "widget" containing the graphs for the process? This is how bpytop does it, though I would probably make changes to fit bottom and all.

But yeah actually adding this feature shouldn't be too hard once I have a more concrete idea of what it should look like. Adding the data collection for this feature wouldn't be hard, though it would mean storing more data. Adding the UI stuff shouldn't be too hard after I finish some work that I've been slowly chipping away at.

ClementTsang avatar Oct 19 '21 22:10 ClementTsang

@ClementTsang IMPO, I think that replacing the system graphs and add some indicator to ensure that the user know that the current graph is a process specific, which could some text or color pattern.

Also when you say it's not possible, what do you mean?

bubbajoe avatar Apr 15 '24 19:04 bubbajoe