perfevents

package
v0.0.0-...-16b7819 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CGROUP_EVENTS = []string{"cycles", "instructions", "cache-references", "cache-misses",
	"branch-instructions", "branch-misses", "stalled-cycles-frontend",
	"stalled-cycles-backend", "ref-cycles"}

Functions

func Meta

func Meta() *plugin.PluginMeta

Types

type Perfevents

type Perfevents struct {
	Init func() error
	// contains filtered or unexported fields
}

func NewPerfeventsCollector

func NewPerfeventsCollector() *Perfevents

New initializes Perfevents plugin

func (*Perfevents) CollectMetrics

func (p *Perfevents) CollectMetrics(mts []plugin.MetricType) ([]plugin.MetricType, error)

CollectMetrics returns HW metrics from perf events subsystem for Cgroups present on the host.

func (*Perfevents) GetConfigPolicy

func (p *Perfevents) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy returns a ConfigPolicy

func (*Perfevents) GetMetricTypes

func (p *Perfevents) GetMetricTypes(_ plugin.ConfigType) ([]plugin.MetricType, error)

GetMetricTypes returns the metric types exposed by perf events subsystem

Jump to

Keyboard shortcuts

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