package syscall

import "google.golang.org/grpc/internal/syscall"

Index

Functions

func 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. It a no-op function for non-linux or appengine environment.

func GetCPUTime

func GetCPUTime() int64

GetCPUTime returns the how much CPU time has passed since the start of this process. It always returns 0 under non-linux or appengine environment.

Types

type Rusage

type Rusage struct{}

Rusage is an empty struct under non-linux or appengine environment.

func GetRusage

func GetRusage() (rusage *Rusage)

GetRusage is a no-op function under non-linux or appengine environment.

Source Files

syscall_nonlinux.go

Version
v1.15.0
Published
Sep 11, 2018
Platform
darwin/amd64
Imports
1 packages
Last checked
8 minutes ago

Tools for package owners.