grpc: google.golang.org/grpc/internal/syscall Index | Files

package syscall

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

Package syscall provides functionalities that grpc uses to get low-level operating system stats/info.

Index

Package Files

syscall_linux.go

func CPUTimeDiff Uses

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.

func GetCPUTime Uses

func GetCPUTime() int64

GetCPUTime returns the how much CPU time has passed since the start of this process.

func GetTCPUserTimeout Uses

func GetTCPUserTimeout(conn net.Conn) (opt int, err error)

GetTCPUserTimeout gets the TCP user timeout on a connection's socket

func SetTCPUserTimeout Uses

func SetTCPUserTimeout(conn net.Conn, timeout time.Duration) error

SetTCPUserTimeout sets the TCP user timeout on a connection's socket

type Rusage Uses

type Rusage syscall.Rusage

Rusage is an alias for syscall.Rusage under linux non-appengine environment.

func GetRusage Uses

func GetRusage() (rusage *Rusage)

GetRusage returns the resource usage of current process.

Package syscall imports 6 packages (graph) and is imported by 11 packages. Updated 2018-11-09. Refresh now. Tools for package owners.