btop icon indicating copy to clipboard operation
btop copied to clipboard

[REQUEST] Group Processes in the process graph

Open redxtech opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. When I am looking at the process list, I would like to be able to know the total memory used by a program. However, by default, there are a number of entries for each process, so I would have to manually add up all the memory usages, cpu usages, etc.

Describe the solution you'd like bottom by ClementTsang has an option (-g/--group) that does this. It groups the processes together, so there is only one entry for Discord, only one entry for vivaldi-bin (my browser) and it shows the total usage of each one.

Optimally, this could be a feature that would be enabled/disabled with an entry in the config file.

Describe alternatives you've considered Maybe it could be a keybind as well?

Additional context Default behaviour: https://i.imgur.com/lpjIxvx.png

Desired behaviour (btm screenshot): https://i.imgur.com/AabxK9X.png

redxtech avatar Dec 21 '21 19:12 redxtech

This would be a great addition to btop.

DivineMK avatar May 19 '24 19:05 DivineMK

I was looking for exactly this. It would help a lot with visualization.

raulpacheco2k avatar Jul 12 '24 13:07 raulpacheco2k

I found out that it is possible if you enable these options in memory tab:

  • Tree view
  • Aggregate

DivineMK avatar Aug 24 '24 21:08 DivineMK

Can confirm that proc_aggregate = True together with proc_tree = False and manually collapsing select nodes works for me:

Image

While it would be nice to get automatic aggregation by "application" in some way, I struggle to formulate a general rule for that.

reitzig avatar Jul 30 '25 15:07 reitzig