grouped_proc

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupedProc

type GroupedProc struct {
	sync.Mutex
	Metrics        map[metric.MetricKey]metric.Metric
	Enabled        map[metric.MetricKey]bool
	Exists         bool
	ProcMountPoint string
	RequiredWeight int64
}

func NewGroupedProc

func NewGroupedProc(enabled map[metric.MetricKey]bool) *GroupedProc

func (*GroupedProc) AppendProcAndCollect

func (g *GroupedProc) AppendProcAndCollect(pid int) error

func (*GroupedProc) Collect added in v0.8.0

func (g *GroupedProc) Collect(key string) error

type GroupedProcs added in v0.1.1

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

func NewGroupedProcs added in v0.1.1

func NewGroupedProcs() *GroupedProcs

func (*GroupedProcs) Delete added in v0.1.1

func (m *GroupedProcs) Delete(group string)

func (*GroupedProcs) Length added in v0.1.1

func (m *GroupedProcs) Length() int

func (*GroupedProcs) Load added in v0.1.1

func (m *GroupedProcs) Load(group string) (*GroupedProc, bool)

func (*GroupedProcs) Range added in v0.1.1

func (m *GroupedProcs) Range(f func(group string, gproc *GroupedProc) bool)

func (*GroupedProcs) Store added in v0.1.1

func (m *GroupedProcs) Store(group string, gproc *GroupedProc)

Jump to

Keyboard shortcuts

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