osmain

package
v0.0.0-...-4714720 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2015 License: Apache-2.0, Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintOsDependent

func PrintOsDependent(s *LinuxStats, batchmode bool)

PrintOsDependent prints OS dependent statistics

Types

type LinuxStats

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

func RegisterOsDependent

func RegisterOsDependent(m *metrics.MetricContext, step time.Duration,
	d *OsIndependentStats) *LinuxStats

RegisterOsDependent registers OS dependent statistics

type OsIndependentStats

type OsIndependentStats struct {
	Cstat *cpustat.CPUStat
	Mstat *memstat.MemStat
	Procs *pidstat.ProcessStat
}

OsIndependentStats must be implemented by all supported platforms

Jump to

Keyboard shortcuts

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