Logo ProcessKit API Reference

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

this.ActiveProcessCount

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.

Returns: int

this.PeakMemoryBytes

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.

Returns: int64 option

this.TotalCpuTime

Full Usage: this.TotalCpuTime

Returns: TimeSpan option

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).

Returns: TimeSpan option

Type something to start searching.