package syscall
Import Path
google.golang.org/grpc/internal/syscall (on go.dev)
Dependency Relation
imports 4 packages, and imported by one package
Involved Source Files
Package syscall provides functionalities that grpc uses to get low-level
operating system stats/info.
Package-Level Type Names (only one, which is exported)
Rusage is an empty struct under non-linux environment.
func GetRusage() (rusage *Rusage)
func CPUTimeDiff(first *Rusage, latest *Rusage) (float64, float64)
func CPUTimeDiff(first *Rusage, latest *Rusage) (float64, float64)
Package-Level Functions (total 6, in which 5 are exported)
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 environment.
GetCPUTime returns the how much CPU time has passed since the start of this process.
It always returns 0 under non-linux environment.
GetRusage is a no-op function under non-linux environment.
GetTCPUserTimeout is a no-op function under non-linux environments
a negative return value indicates the operation is not supported
SetTCPUserTimeout is a no-op function under non-linux environments
Package-Level Variables (total 2, neither is exported)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |