phase

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Phase

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

Phase handles the phase detection and state counting of the profiler

func NewPhase

func NewPhase(history int, states int, buffersize int, phaseLikeliness float32, phaseHistory int64, phaseHistoryFadeout bool, profiler api.TSProfiler) Phase

NewPhase instantiates and returns a new Phase with the provided parameters

func (*Phase) Count

func (phase *Phase) Count(tsstates []models.TSState)

Count takes a discretized Buffer represented as TSStates for each metric, adjusts the current phase and increases its counter

func (*Phase) GetPhase

func (phase *Phase) GetPhase() int

GetPhase returns the current phase pointer

func (*Phase) GetPhasesTx

func (phase *Phase) GetPhasesTx() models.Phases

GetPhasesTx returns

Jump to

Keyboard shortcuts

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