Documentation ¶
Overview ¶
Package setup_instruments manages the configuration of performance_schema.setup_instruments.
Index ¶
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 one row of performance_schema.setup_instruments
type SetupInstruments ¶
type SetupInstruments struct {
// contains filtered or unexported fields
}
SetupInstruments "object"
func NewSetupInstruments ¶
func NewSetupInstruments(dbh *sql.DB) *SetupInstruments
NewSetupInstruments returns a pointer to a newly initialised SetupInstruments.
func (*SetupInstruments) Configure ¶
func (si *SetupInstruments) Configure(sqlSelect string, collecting, updating string)
Configure updates setup_instruments so we can monitor tables correctly.
func (*SetupInstruments) EnableMonitoring ¶
func (si *SetupInstruments) EnableMonitoring()
EnableMonitoring enables mutex and stage monitoring
func (*SetupInstruments) EnableMutexMonitoring ¶
func (si *SetupInstruments) EnableMutexMonitoring()
EnableMutexMonitoring changes settings to monitor wait/synch/mutex/%
func (*SetupInstruments) EnableStageMonitoring ¶
func (si *SetupInstruments) EnableStageMonitoring()
EnableStageMonitoring change settings to monitor stage/sql/%
func (*SetupInstruments) RestoreConfiguration ¶
func (si *SetupInstruments) RestoreConfiguration()
RestoreConfiguration restores setup_instruments rows to their previous settings (if changed previously).
Click to show internal directories.
Click to hide internal directories.