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

package expensivequery

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


Package Files

expensivequery.go memory_usage_alarm.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 21 packages (graph) and is imported by 5 packages. Updated 2021-01-27. Refresh now. Tools for package owners.