system

package
v0.0.0-...-726b50c Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 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 CPUStats

type CPUStats struct {
	PerCPU    bool   `toml:"percpu"`
	TotalCPU  bool   `toml:"totalcpu"`
	Interval  int    `toml:"interval"`
	TransName string `toml:"trans_name"`
	// contains filtered or unexported fields
}

CPUStats ....

func NewCPUStats

func NewCPUStats(ps PS) *CPUStats

NewCPUStats ...

func (*CPUStats) Close

func (cpu *CPUStats) Close() error

func (*CPUStats) Gather

func (cpu *CPUStats) Gather() error

Gather ....

func (*CPUStats) Init

func (cpu *CPUStats) Init() error

Init ...

func (*CPUStats) Start

func (cpu *CPUStats) Start() error

type PS

type PS interface {
	CPUTimes(perCPU, totalCPU bool) ([]cpu.TimesStat, error)
}

Jump to

Keyboard shortcuts

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