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 ¶
- type ByOps
- type Row
- type Rows
- type TableIoLatency
- func (tiol *TableIoLatency) Collect()
- func (tiol TableIoLatency) Description() string
- func (tiol TableIoLatency) EmptyRowContent() string
- func (tiol TableIoLatency) HaveRelativeStats() bool
- func (tiol TableIoLatency) Headings() string
- func (tiol TableIoLatency) Len() int
- func (tiol TableIoLatency) RowContent() []string
- func (tiol *TableIoLatency) SetFirstFromLast()
- func (tiol *TableIoLatency) SetWantsLatency(wantLatency bool)
- func (tiol TableIoLatency) TotalRowContent() string
- func (tiol TableIoLatency) WantsLatency() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
Row contains w from table_io_waits_summary_by_table
type Rows ¶
type Rows []Row
Rows contains a set of rows
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