Aggregate RAM usage by parent process
Proposal to fix the following with a new Combine processes option: Fixes: https://github.com/exelban/stats/issues/2099 Fixes: https://github.com/exelban/stats/issues/2162
hi. Thanks for your contribution, at first look it looks fine. But I will need some time to check how it works and if all cases are covered. Will back with feedback later.
PS: please ping me in case I will not provide any feedback in 7 days
something is totally off
Code was displaying resident_size Changing it to display phys_footprint seems like a closer match to the Memory column in Activity Monitor
Hi, are you at least run and check this PR? The second time it's totally of from what activity monitor shows.
The previous screenshot is showing individual process usage. You need to look at the process hierarchy, eg. lldb-rpc-server is a child process of XCode so the memory usage is added together. Similarly, all the Safari processes are added together and grouped under Safari. The InferenceProviderService process is owned by another user (_modelmanagerd) and the memory usage for this process not shown.
Also I changed a line in Modules/RAM/popup.swift to correct an existing issue with the way GB is displayed (changed GB RAM to use powers of 2 rather than decimal). The screenshot seems to be missing this minor correction.
Hi. Sorry for so long response. There is still some problems with non combined processes. It does not show all processes for some reason: Activity Monitor - current reader - this PR reader with disabled "combine processes"
For some reason this implementation missing some processes
This implementation works fine when combined processes is enabled. Maybe will be better to separate these modes:
- current implementation when combined processes is disabled
- your implementation for enabled combined processes option