runner: add procPeak as measurement of peak process count

This commit is contained in:
criyle 2025-02-20 03:12:28 +00:00
parent cf936ae31f
commit 51b53cf60b
2 changed files with 6 additions and 2 deletions

View File

@ -426,6 +426,9 @@ func start() (*runner.Result, error) {
if memory > 0 {
rt.Memory = runner.Size(memory)
}
if procPeak > 0 {
rt.ProcPeak = procPeak
}
debug("cgroup:", rt)
}
return &rt, nil

View File

@ -13,6 +13,7 @@ type Result struct {
Time time.Duration // used user CPU time (underlying type int64 in ns)
Memory Size // used user memory (underlying type uint64 in bytes)
ProcPeak uint64 // maximum processes
// metrics for the program runner
SetUpTime time.Duration