aristocratos / btop

A monitor of resources
Apache License 2.0
21.38k stars 656 forks source link

[REQUEST] Configuration to autocollapse processes by name #686

Open halvabner opened 11 months ago

halvabner commented 11 months ago

Examples

Processes like Chromium (yes, I know I'm using the wrong browser :P). It starts ~40 subprocesses at a time. This causes:

1. The view to be cluttered with a whole page of chromium processes.

2. Hard to calculate memory usage:

Memory used by instances is displayed spread over them but I would like to just know "how much memory the browser is using"

Other examples are kthreads and Discord, I would like many common processes collapsed by default.

Visual difference

231214-1307-51 231214-1308-46

VS (note how nice memory usage is to look at here)

231214-1308-58

Implementation

I don't know what would be easiest or most appropriate but I think a configuration list of names to match for auto-collapsing would be nice.

Related to this

Cheers ^_^

imwints commented 11 months ago

Other examples are kthreads and Discord, I would like many common processes collapsed by default.

For kthreads, you can disable all kernel processes in the settings, hit esc, enter, 5 and then scroll down to Proc filter kernel and set it to true.

dm17 commented 2 months ago

Definitely useful to see chromium listed once in btop with RAM & CPU usage totaled! Very useful feature!

johnhamelink commented 3 weeks ago

673 is also related to this. It would be very nice to collapse processes in some way (for me, I'd like to be able to set it by default in the config).