Implemented stats for raw_exec

This commit is contained in:
Diptanu Choudhury
2016-05-11 12:56:47 -07:00
parent 72c60d6b99
commit 0fdff61d2d
4 changed files with 126 additions and 5 deletions

View File

@@ -32,5 +32,9 @@ func (e *UniversalExecutor) configureIsolation() error {
}
func (e *UniversalExecutor) Stats() (*cstructs.TaskResourceUsage, error) {
return nil, nil
return e.resourceUsagePids()
}
func (e *UniversalExecutor) getAllPids() ([]int, error) {
return e.scanPids()
}