Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

syscall

v1.51.4
github.com/lfch/grpc/internal/syscall

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

8 matches

Top ↑

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.

GetTCPUserTimeout

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

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

SetTCPUserTimeout

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

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

Types

Rusage

type Rusage = syscall.Rusage

Rusage is an alias for syscall.Rusage under linux environment.

GetRusage

func GetRusage() *Rusage

GetRusage returns the resource usage of current process.

Dependency graph