1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:20:22 -07:00

os: point users of ProcessState.SysUsage to getrusage(2)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7352044
This commit is contained in:
Russ Cox 2013-02-15 17:11:13 -05:00
parent 6d888f1e1b
commit c92d3552e5

View File

@ -79,6 +79,8 @@ func (p *ProcessState) Sys() interface{} {
// 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.)
func (p *ProcessState) SysUsage() interface{} {
return p.sysUsage()
}