From: Russ Cox Date: Fri, 15 Feb 2013 22:11:13 +0000 (-0500) Subject: os: point users of ProcessState.SysUsage to getrusage(2) X-Git-Tag: go1.1rc2~991 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c92d3552e5de31a5195aef5ff04979d61dcbf1a6;p=gostls13.git os: point users of ProcessState.SysUsage to getrusage(2) R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7352044 --- diff --git a/src/pkg/os/doc.go b/src/pkg/os/doc.go index c469e58533..2cc17530c2 100644 --- a/src/pkg/os/doc.go +++ b/src/pkg/os/doc.go @@ -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() }