Documentation ¶
Overview ¶
Package mutex_latency provides library routines for ps-top. for managing the events_waits_summary_global_by_event_name table.
Package mutex_latency contains the library routines for managing the events_waits_summary_global_by_event_name table
Package mutex_latency contains the library routines for managing the events_waits_summary_global_by_event_name table
Index ¶
- type MutexLatency
- func (ml *MutexLatency) Collect()
- func (ml MutexLatency) Description() string
- func (ml MutexLatency) EmptyRowContent() string
- func (ml MutexLatency) HaveRelativeStats() bool
- func (ml *MutexLatency) Headings() string
- func (ml MutexLatency) Len() int
- func (ml MutexLatency) RowContent() []string
- func (ml *MutexLatency) SetFirstFromLast()
- func (ml MutexLatency) TotalRowContent() string
- type Row
- type Rows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutexLatency ¶ added in v0.7.16
type MutexLatency struct { baseobject.BaseObject // embedded Results Rows // results (maybe with subtraction) Totals Row // totals of results // contains filtered or unexported fields }
MutexLatency holds a table of rows
func NewMutexLatency ¶ added in v0.7.6
func NewMutexLatency(ctx *context.Context, db *sql.DB) *MutexLatency
NewMutexLatency returns a mutex latency object using given context and db
func (*MutexLatency) Collect ¶ added in v0.7.16
func (ml *MutexLatency) Collect()
Collect collects data from the db, updating first values if needed, and then subtracting first values if we want relative values, after which it stores totals.
func (MutexLatency) Description ¶ added in v0.7.16
func (ml MutexLatency) Description() string
Description returns a description of the table
func (MutexLatency) EmptyRowContent ¶ added in v0.7.16
func (ml MutexLatency) EmptyRowContent() string
EmptyRowContent returns a string representation of no data
func (MutexLatency) HaveRelativeStats ¶ added in v0.7.16
func (ml MutexLatency) HaveRelativeStats() bool
HaveRelativeStats is true for this object
func (*MutexLatency) Headings ¶ added in v0.7.16
func (ml *MutexLatency) Headings() string
Headings returns a string representation of the headings
func (MutexLatency) Len ¶ added in v0.7.16
func (ml MutexLatency) Len() int
Len returns the length of the result set
func (MutexLatency) RowContent ¶ added in v0.7.16
func (ml MutexLatency) RowContent() []string
RowContent returns a string representation of the row content
func (*MutexLatency) SetFirstFromLast ¶ added in v0.7.16
func (ml *MutexLatency) SetFirstFromLast()
SetFirstFromLast resets the statistics to current values
func (MutexLatency) TotalRowContent ¶ added in v0.7.16
func (ml MutexLatency) TotalRowContent() string
TotalRowContent returns a string representation of the totals of the table
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
Row contains a row from performance_schema.events_waits_summary_global_by_event_name Note: upper case names to match the performance_schema column names. This type is _not_ meant to be exported.