Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainerCyclesAndInstructions ¶
func GetContainerCyclesAndInstructions(collector *PerfCollector) (float64, float64, error)
todo: call collect() to get all metrics at the same time instead of put it inside GetContainerCyclesAndInstructions
Types ¶
type PerfCollector ¶
type PerfCollector struct {
// contains filtered or unexported fields
}
func GetAndStartPerfCollectorOnContainer ¶
func GetAndStartPerfCollectorOnContainer(cgroupFile *os.File, cpus []int) (*PerfCollector, error)
func NewPerfCollector ¶
func NewPerfCollector(cgroupFile *os.File, cpus []int) (*PerfCollector, error)
func (*PerfCollector) CleanUp ¶
func (c *PerfCollector) CleanUp() error
Click to show internal directories.
Click to hide internal directories.