syscall
v1.14.0
github.com/bglmmz/grpc/internal/syscall
Documentation
pkg.go.dev ↗Package syscall provides functionalities that grpc uses to get low-level operating system stats/info.
Functions
CPUTimeDiff
func CPUTimeDiff(first *Rusage, latest *Rusage) (float64, float64)
CPUTimeDiff returns the differences of user CPU time and system CPU time used between two Rusage structs.
GetCPUTime
func GetCPUTime() int64
GetCPUTime returns the how much CPU time has passed since the start of this process.
Types
Rusage
type Rusage syscall.Rusage
Rusage is an alias for syscall.Rusage under linux non-appengine environment.
GetRusage
func GetRusage() (rusage *Rusage)
GetRusage returns the resource usage of current process.