setup_instruments

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

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).

Jump to

Keyboard shortcuts

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