mutexlatency

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package mutexlatency holds the routines which manage the server mutexs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

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

Wrapper wraps a MutexLatency struct

func NewMutexLatency

func NewMutexLatency(cfg *config.Config, db *sql.DB) *Wrapper

NewMutexLatency creates a wrapper around mutexlatency.MutexLatency

func (*Wrapper) Collect

func (mlw *Wrapper) Collect()

Collect data from the db, then merge it in.

func (Wrapper) Description

func (mlw Wrapper) Description() string

Description returns a description of the table

func (Wrapper) EmptyRowContent

func (mlw Wrapper) EmptyRowContent() string

EmptyRowContent returns an empty string of data (for filling in)

func (Wrapper) FirstCollectTime

func (mlw Wrapper) FirstCollectTime() time.Time

FirstCollectTime returns the time the first value was collected

func (Wrapper) HaveRelativeStats

func (mlw Wrapper) HaveRelativeStats() bool

HaveRelativeStats is true for this object

func (Wrapper) Headings

func (mlw Wrapper) Headings() string

Headings returns the headings for a table

func (Wrapper) LastCollectTime

func (mlw Wrapper) LastCollectTime() time.Time

LastCollectTime returns the time the last value was collected

func (*Wrapper) ResetStatistics added in v1.1.0

func (mlw *Wrapper) ResetStatistics()

ResetStatistics resets the statistics to last values

func (Wrapper) RowContent

func (mlw Wrapper) RowContent() []string

RowContent returns the rows we need for displaying

func (Wrapper) TotalRowContent

func (mlw Wrapper) TotalRowContent() string

TotalRowContent returns all the totals

func (Wrapper) WantRelativeStats

func (mlw Wrapper) WantRelativeStats() bool

WantRelativeStats indiates if we want relative statistics

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳