ProcessGroupStats Type
A snapshot of a process group's resource usage. `TotalCpuTime` and `PeakMemoryBytes` are `None` when the platform can't report them — the POSIX process-group mechanism (macOS and the Linux fallback) has no kernel accumulator; the Linux cgroup v2 backend (the `limits` feature) supplies them. Sealed with an internal constructor so it can gain metrics without breaking the frozen API.
Instance members
| Instance member |
Description
|
Full Usage:
this.ActiveProcessCount
Returns: int
|
Number of live processes currently in the group. Under the POSIX process-group mechanism this counts live process *groups* (one per contained child) rather than individual processes; with a Job Object (or cgroup) it is the exact process count.
|
Full Usage:
this.PeakMemoryBytes
Returns: int64 option
|
Peak memory used by the group in bytes, if available — the OS's own group-wide measure (Windows: the Job's peak *committed* memory). Not directly comparable across platforms.
|
|
Total CPU time (user + kernel) accumulated by the group, if available. On Windows this is cumulative across every process that has ever been in the Job (including terminated ones).
|
ProcessKit API Reference