Movatterモバイル変換


[0]ホーム

URL:


syscall

package
v1.77.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2025 License:Apache-2.0Imports:6Imported by:0

Details

Repository

github.com/grpc/grpc-go

Links

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcCPUTimeDiff

func CPUTimeDiff(first *Rusage, latest *Rusage) (float64,float64)

CPUTimeDiff returns the differences of user CPU time and system CPU time usedbetween two Rusage structs.

funcGetCPUTime

func GetCPUTime()int64

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

funcGetTCPUserTimeoutadded inv1.17.0

func GetTCPUserTimeout(connnet.Conn) (optint, errerror)

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

funcSetTCPUserTimeoutadded inv1.17.0

func SetTCPUserTimeout(connnet.Conn, timeouttime.Duration)error

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

Types

typeRusage

type Rusage =syscall.Rusage

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

funcGetRusage

func GetRusage() *Rusage

GetRusage returns the resource usage of current process.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp