pse

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PDH_FMT_DOUBLE   = 0x00000200
	PDH_INVALID_DATA = 0xC0000BC6
	PDH_MORE_DATA    = 0x800007D2
)

PDH constants used here

Variables

This section is empty.

Functions

func ProcUsage

func ProcUsage(pcpu *float64, rss, vss *int64) error

ProcUsage returns process CPU and memory statistics

Types

type PDH_FMT_COUNTERVALUE_DOUBLE

type PDH_FMT_COUNTERVALUE_DOUBLE struct {
	CStatus     uint32
	DoubleValue float64
}

PDH_FMT_COUNTERVALUE_DOUBLE - double value

type PDH_FMT_COUNTERVALUE_ITEM_DOUBLE

type PDH_FMT_COUNTERVALUE_ITEM_DOUBLE struct {
	SzName   *uint16 // pointer to a string
	FmtValue PDH_FMT_COUNTERVALUE_DOUBLE
}

PDH_FMT_COUNTERVALUE_ITEM_DOUBLE is an array element of a double value

type PDH_HCOUNTER

type PDH_HCOUNTER syscall.Handle

PDH Types

type PDH_HQUERY

type PDH_HQUERY syscall.Handle

PDH Types

Jump to

Keyboard shortcuts

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