Documentation
¶
Overview ¶
Package mutexlatency provides library routines for ps-top. for managing the events_waits_summary_global_by_event_name table.
Package mutexlatency contains the library routines for managing the events_waits_summary_global_by_event_Name table
Package mutexlatency contains the library routines for managing the events_waits_summary_global_by_event_name table
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutexLatency ¶
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 ¶
func NewMutexLatency(cfg *config.Config, db *sql.DB) *MutexLatency
NewMutexLatency returns a mutex latency object using given config and db
func (*MutexLatency) Collect ¶
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) HaveRelativeStats ¶
func (ml MutexLatency) HaveRelativeStats() bool
HaveRelativeStats is true for this object
func (*MutexLatency) ResetStatistics ¶ added in v1.1.0
func (ml *MutexLatency) ResetStatistics()
ResetStatistics resets the statistics to current values