MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / SysUsage

Method SysUsage

common/sandbox/cmd/exec.go:170–172  ·  view source on GitHub ↗

SysUsage returns system-dependent resource usage information about the exited process. Convert it to the appropriate underlying type, such as *syscall.Rusage on Unix, to access its contents. (On Unix, *syscall.Rusage matches struct rusage as defined in the getrusage(2) manual page.)

()

Source from the content-addressed store, hash-verified

168// (On Unix, *syscall.Rusage matches struct rusage as defined in the
169// getrusage(2) manual page.)
170func (p *ProcessState) SysUsage() interface{} {
171 return p.sysUsage()
172}

Callers 2

runAsyncFunction · 0.95
runInteractiveAsyncFunction · 0.95

Calls 1

sysUsageMethod · 0.95

Tested by

no test coverage detected