Revert to non-recursive GetPids, add recursive GetAllPids

Signed-off-by: Jimmi Dyson <jimmidyson@gmail.com>
This commit is contained in:
Jimmi Dyson
2016-01-08 19:37:18 +00:00
parent f03b7f8317
commit 91c7024e52
8 changed files with 51 additions and 15 deletions

View File

@@ -15,6 +15,9 @@ type Manager interface {
// Returns the PIDs inside the cgroup set
GetPids() ([]int, error)
// Returns the PIDs inside the cgroup set & all sub-cgroups
GetAllPids() ([]int, error)
// Returns statistics for the cgroup set
GetStats() (*Stats, error)