perfstore

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PerfMetrics

type PerfMetrics struct {
	Spec  cgstore.CgroupRef
	Value pmu.PerfData
}

PerfMetrics show perf date for the cgroup

type PerfStore

type PerfStore interface {
	PerfStoreInterface
	Name() string
	Run(stop <-chan struct{})
}

PerfStore describe common interface for perf resource inherit from state store

func NewPerfStoreManager

func NewPerfStoreManager(cacheTTL time.Duration, config *types.MetricsPerfConfig,
	cgroupSt cgstore.CgroupStoreInterface, cpuLock sync.Locker) PerfStore

NewPerfStoreManager new perf store manager

type PerfStoreInterface

type PerfStoreInterface interface {
	GetPerfResourceRangeStats(key string, start, end time.Time, count int) ([]*PerfMetrics, error)
	GetPerfResourceRecentState(key string) (*PerfMetrics, error)
	ListPerfResourceRangeStats(start, end time.Time, count int) (map[string][]*PerfMetrics, error)
	ListPerfResourceRecentStats() ([]*PerfMetrics, error)
}

PerfStoreInterface describe perf special interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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