tidb: github.com/pingcap/tidb/util/expensivequery Index | Files

package expensivequery

import "github.com/pingcap/tidb/util/expensivequery"

Index

Package Files

expensivequery.go

type Handle Uses

type Handle struct {
    // contains filtered or unexported fields
}

Handle is the handler for expensive query.

func NewExpensiveQueryHandle Uses

func NewExpensiveQueryHandle(exitCh chan struct{}) *Handle

NewExpensiveQueryHandle builds a new expensive query handler.

func (*Handle) LogOnQueryExceedMemQuota Uses

func (eqh *Handle) LogOnQueryExceedMemQuota(connID uint64)

LogOnQueryExceedMemQuota prints a log when memory usage of connID is out of memory quota.

func (*Handle) Run Uses

func (eqh *Handle) Run()

Run starts a expensive query checker goroutine at the start time of the server.

func (*Handle) SetSessionManager Uses

func (eqh *Handle) SetSessionManager(sm util.SessionManager) *Handle

SetSessionManager sets the SessionManager which is used to fetching the info of all active sessions.

Package expensivequery imports 12 packages (graph) and is imported by 2 packages. Updated 2019-11-12. Refresh now. Tools for package owners.