profiler

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profiler

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

Profiler is the TSProfiler implementation of spec.TSProfiler

func NewProfiler

func NewProfiler(settings models.Settings) *Profiler

NewProfiler creates and returns a new TSProfiler, configured with given Settings

func (*Profiler) Get

func (profiler *Profiler) Get() models.TSProfile

Get generates an returns a profile based on previously put data

func (*Profiler) GetCurrentPeriodPath

func (profiler *Profiler) GetCurrentPeriodPath() []int

GetCurrentPeriodPath returns the current period path

func (*Profiler) GetCurrentPhase

func (profiler *Profiler) GetCurrentPhase() int

GetCurrentPhase returns the current phase id

func (*Profiler) GetCurrentState

func (profiler *Profiler) GetCurrentState() []models.TSState

GetCurrentState returns the current state for each metric

func (*Profiler) GetCurrentStats

func (profiler *Profiler) GetCurrentStats() map[string]models.TSStats

GetCurrentStats returns the current stats for each metric

func (*Profiler) Put

func (profiler *Profiler) Put(data models.TSInput)

Put adds a TSData item to the profiler

func (*Profiler) Terminate

func (profiler *Profiler) Terminate()

Terminate stops and removes the profiler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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