]> Cypherpunks repositories - gostls13.git/commitdiff
os: point users of ProcessState.SysUsage to getrusage(2)
authorRuss Cox <rsc@golang.org>
Fri, 15 Feb 2013 22:11:13 +0000 (17:11 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 15 Feb 2013 22:11:13 +0000 (17:11 -0500)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7352044

src/pkg/os/doc.go

index c469e585331c1bcef222773606006e37ca3a3342..2cc17530c2f518d20015604ef1267d4a6956948f 100644 (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()
 }