table_io_latency

package
v0.7.17 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package table_io_latency contains the routines for managing performance_schema.table_io_waits_by_table.

Package table_io_latency contains the routines for managing performance_schema.table_io_waits_by_table.

Package table_io_latency contains the routines for managing table_io_waits_by_table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByOps

type ByOps Rows

ByOps is used for sorting by the number of operations

func (ByOps) Len

func (rows ByOps) Len() int

func (ByOps) Less

func (rows ByOps) Less(i, j int) bool

func (ByOps) Swap

func (rows ByOps) Swap(i, j int)

type Row

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

Row contains w from table_io_waits_summary_by_table

func (Row) String

func (row Row) String() string

describe a whole row

type Rows

type Rows []Row

Rows contains a set of rows

func (Rows) Len

func (rows Rows) Len() int

func (Rows) Less

func (rows Rows) Less(i, j int) bool

sort by value (descending) but also by "name" (ascending) if the values are the same

func (Rows) String

func (rows Rows) String() string

describe a whole table

func (Rows) Swap

func (rows Rows) Swap(i, j int)

type TableIoLatency added in v0.7.16

type TableIoLatency struct {
	baseobject.BaseObject

	Results Rows // results (maybe with subtraction)
	Totals  Row  // totals of results
	// contains filtered or unexported fields
}

TableIoLatency contains performance_schema.table_io_waits_summary_by_table data

func NewTableIoLatency added in v0.7.6

func NewTableIoLatency(ctx *context.Context, db *sql.DB) *TableIoLatency

NewTableIoLatency returns an i/o latency object with context and db handle

func (*TableIoLatency) Collect added in v0.7.16

func (tiol *TableIoLatency) 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 (TableIoLatency) Description added in v0.7.16

func (tiol TableIoLatency) Description() string

Description returns the description of the table as a string

func (TableIoLatency) EmptyRowContent added in v0.7.16

func (tiol TableIoLatency) EmptyRowContent() string

EmptyRowContent returns an empty row

func (TableIoLatency) HaveRelativeStats added in v0.7.16

func (tiol TableIoLatency) HaveRelativeStats() bool

HaveRelativeStats is true for this object

func (TableIoLatency) Headings added in v0.7.16

func (tiol TableIoLatency) Headings() string

Headings returns the headings for the table

func (TableIoLatency) Len added in v0.7.16

func (tiol TableIoLatency) Len() int

Len returns the length of the result set

func (TableIoLatency) RowContent added in v0.7.16

func (tiol TableIoLatency) RowContent() []string

RowContent returns the top maxRows data from the table

func (*TableIoLatency) SetFirstFromLast added in v0.7.16

func (tiol *TableIoLatency) SetFirstFromLast()

SetFirstFromLast resets the statistics to current values

func (*TableIoLatency) SetWantsLatency added in v0.7.16

func (tiol *TableIoLatency) SetWantsLatency(wantLatency bool)

SetWantsLatency allows us to define if we want latency settings

func (TableIoLatency) TotalRowContent added in v0.7.16

func (tiol TableIoLatency) TotalRowContent() string

TotalRowContent returns a formated row containing totals data

func (TableIoLatency) WantsLatency added in v0.7.16

func (tiol TableIoLatency) WantsLatency() bool

WantsLatency returns whether we want to see latency information

Jump to

Keyboard shortcuts

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