cpu

package
v0.0.0-...-177afef Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usage

type Usage struct {
	Min float64
	Max float64
	Avg float64
	P50 float64
	P90 float64
	P99 float64
}

func RecordUsage

func RecordUsage(ctx context.Context) (Usage, error)

RecordUsage return the final Usage when context canceled

func RecordUsageWithPid

func RecordUsageWithPid(ctx context.Context, pid int) (usage Usage, err error)

RecordUsageWithPid return the final Usage when context canceled

func (Usage) String

func (u Usage) String() string

Jump to

Keyboard shortcuts

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