cgroup

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSubsystems = []string{
	"cpuset",
	"cpu",
	"cpuacct",
	"blkio",
	"memory",
	"devices",
	"freezer",
	"net_cls",
	"net_prio",
	"perf_event",
	"hugetlb",
	"pids",
	"rdma",
}

DefaultSubsystems cgroups subsystems default list

Functions

This section is empty.

Types

type Cgroup

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

func NewCgroup

func NewCgroup(fsPath string, subsystems []string) *Cgroup

NewCgroup

func (*Cgroup) Collect

func (c *Cgroup) Collect(gprocs *grouped_proc.GroupedProcs, enabled map[metric.MetricKey]bool, sem *semaphore.Weighted) error

func (*Cgroup) Name

func (c *Cgroup) Name() string

func (*Cgroup) SetExcludeRegexp added in v0.4.0

func (c *Cgroup) SetExcludeRegexp(eReStr string) error

func (*Cgroup) SetNormalizeRegexp

func (c *Cgroup) SetNormalizeRegexp(nReStr string) error

Jump to

Keyboard shortcuts

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