syscall

package
v0.0.0-...-549af9f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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.

func GetCPUTime

func GetCPUTime() int64

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

Types

type Rusage

type Rusage syscall.Rusage

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

func GetRusage

func GetRusage() (rusage *Rusage)

GetRusage returns the resource usage of current process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL