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

Possibility to show parent processes with accumulated stats of its child processes #124

Closed
porg opened this issue Mar 20, 2024 · 2 comments

Comments

@porg
Copy link

porg commented Mar 20, 2024

macOS Activity Monitor.app offers Menu → View → All Processes, Hierachically

  1. Each parent process row shows its own utilization.
  2. Each child row shows its utilization respectively.
  3. Missing: A view which sums up (accumulates) the resource utilization of all child processes (plus of the parent process)

Proposal: Offer an option for existing tool or new tool which offers that display mode

The following modes should be possible:

Default mode for hierarchical view

  • Top row shows the accumulated stats for the parent process and all its spawned child processes
  • Parent stats row shown with special symbol, e.g. (..)
    • Open for suggestions, ideally using established/familiarized conventions.
  • Parent stats row equally among the children sorted by whatever is the current sort order.
PROCESS      CPU ▾   RAM

Process Y    17.0%    44
Parent X     14.5%   470
├─ Child D    7.0%    30
├─ Child A    4.5%   230
├─ (..)       2.0%    50
├─ Child C    1.0%   140
└─ Child B    0.0%    80
Process Z     0.0%    33

Parent stats row on top

  • (..) is always the first row that states the utilization of the parent process itself.
  • Followed by all other child process which follow the sorting convention.
  • Note: The sort indicator slightly changes (from ▾ to ▼).
PROCESS      CPU ▼    RAM

Process Y    17.0%    44
Parent X     14.5%   470
├─ (..)       2.0%    50
├─ Child D    7.0%    30
├─ Child A    4.5%   230
├─ Child C    1.0%   140
└─ Child B    0.0%    80
Process Z     0.0%    33

Parent stats row hidden

  • The utilization of the parent process is not shown.
  • But it is included in the total.
  • Also a valid use case.
PROCESS      CPU ▼    RAM

Process Y    17.0%    44
Parent X     14.5%   470
├─ Child D    7.0%    30
├─ Child A    4.5%   230
├─ Child C    1.0%   140
└─ Child B    0.0%    80
Process Z     0.0%    33

Examples

How much total CPU is Safari using?

  • How much is the central steering process taking?
  • Which browser tabs (= child processes) take up the most within Safari?
  • How is the utilization of the separated processes, e.g. MTLCompilerService, VTDecoderXPCService, PlugInLibraryService, etc?

I'd love to answer that at a single glance!

@porg
Copy link
Author

porg commented Mar 20, 2024

  • If that functionality exists in your CLI app suite or also in another 3rd party CLI or GUI app, please let me know!
  • If not, please let me know whether you consider that a feature addition to your CLI app suite! Thanks!

@porg
Copy link
Author

porg commented Mar 20, 2024

E.g. htop in tree mode was not too helpful to analyze Safari and its per-tab child processes:

  1. Web Browser Tab child processes did not show up with the GUI name https://respective-domainname.com but instead just a huge long filepath /Library/Apple/System/Library/StagedFrameworks/Safari/...way...longer... which is not telling at all.
  2. Did not show as parent / child process like in Activity Monitor.app, but instead as separate independent unassociated processes.

Hence was hoping your tool possibly supports that use case. Found nothing indicative in its documentation so far. Hence asking here. Thanks for any feedback!

@walles walles closed this as completed in 4ed7125 Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant