-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
[REQUEST] Aggregate child process values in tree mode #598
Comments
I've implemented this in https://github.com/nobounce/btop/tree/aggregate-child-processes, but I find this hardly distinguishable from the normal per-process statistics. Any idea how this could be made visible that this is the combined resource usage so user won't freak out if they are not aware of this and see for example Also maybe have a look add my wording of this setting, might not describe this feature as you've intended it. |
Awesome that works perfectly! It makes a huge difference when there's deeply-nested trees and I want to show the most "active" ones first, like compiling a bunch of packages in NixOS. DetailsOverriding the (btop.overrideAttrs (prev: {
name = "btop/aggregate-child-processes";
src = pkgs.fetchFromGitHub {
owner = "nobounce";
repo = "btop";
rev = "aggregate-child-processes";
hash = "sha256-wWpcqnZXBH4nIE/EzWWooFyzM0odX2ewAHq1fIuX5M8=";
};
})) Before this, the To make it explicitly clear to users, you could split the display of values into "self" and "child" parts, so something like In my opinion, having the aggregate stats option default to off and making the description really clear is a good approach if you're concerned about confusion. I suggest the description be:
|
I just realized that if we show both memory values we would also want to show all of the other resources twice, but that would take up to much space (or I just can't imagine a nicer way of doing things) |
Is your feature request related to a problem? Please describe.
I'd like to view the process tree, but also sort by total child CPU usage so that (non-collapsed) subtrees with a lot of resource usage appear higher.
Describe the solution you'd like
An option to report aggregate statistics about child processes regardless of the nodes being collapsed or not.
Describe alternatives you've considered
Introduce another toggle like
per-core
calledaggregate
?Additional context
This seems mostly-implemented already since collapsed nodes already sum their values, I'd just like to see the sums while also seeing the child processes.
The text was updated successfully, but these errors were encountered: