mon

package
v0.0.0-...-4f40efb Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuMonitor

type CpuMonitor struct {
	// contains filtered or unexported fields
}

func NewCpuMonitor

func NewCpuMonitor() (*CpuMonitor, error)

func (*CpuMonitor) Update

func (c *CpuMonitor) Update() (self, box float64, dt time.Duration, e error)

type MemStats

type MemStats struct {
	Total    int `json:",omitempty"`
	Free     int `json:",omitempty"`
	SelfVirt int `json:",omitempty"`
	SelfRss  int `json:",omitempty"`
}

func LoadMem

func LoadMem() (*MemStats, error)

func (MemStats) String

func (m MemStats) String() string

Jump to

Keyboard shortcuts

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