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)
Click to show internal directories.
Click to hide internal directories.