Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDiff ¶
FormatDiff formats the result of rusage.Rusage.Subtract() for logging.
Types ¶
type Rusage ¶
type Rusage struct { Date time.Time Elapsed time.Duration Utime, Stime time.Duration Inblock, Outblock int64 }
Rusage is a subset of a Unix-style resource usage counter for the current process and its children. The counters are always 0 on platforms where the system call is not available (i.e., systems where getrusage() doesn't exist).
Click to show internal directories.
Click to hide internal directories.