package pse

import "github.com/nats-io/gnatsd/server/pse"

Index

Constants

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

PDH constants used here

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

Source Files

pse_windows.go

Version
v1.0.4
Published
Sep 27, 2017
Platform
windows/amd64
Imports
8 packages
Last checked
4 hours ago

Tools for package owners.