stageslatency

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package stageslatency is the nterface to events_stages_summary_global_by_event_name

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Row

type Row struct {
	Name         string
	CountStar    uint64
	SumTimerWait uint64
}

Row contains the information in one row

type Rows

type Rows []Row

Rows contains a slice of Rows

type StagesLatency

type StagesLatency struct {
	*model.BaseCollector[Row, Rows]
}

StagesLatency provides a public view of object

func NewStagesLatency

func NewStagesLatency(cfg model.Config, db model.QueryExecutor) *StagesLatency

NewStagesLatency creates a new StagesLatency instance.

func (*StagesLatency) Collect

func (sl *StagesLatency) Collect()

Collect collects data from the db, updating initial values if needed, and then subtracting initial values if we want relative values, after which it stores totals.

func (StagesLatency) HaveRelativeStats

func (sl StagesLatency) HaveRelativeStats() bool

HaveRelativeStats is true for this object

func (StagesLatency) WantRelativeStats added in v1.1.15

func (sl StagesLatency) WantRelativeStats() bool

WantRelativeStats returns the config setting.

Jump to

Keyboard shortcuts

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