import "github.com/pingcap/tidb/util/expensivequery"
expensivequery.go memory_usage_alarm.go
type Handle struct {
// contains filtered or unexported fields
}
Handle is the handler for expensive query.
NewExpensiveQueryHandle builds a new expensive query handler.
LogOnQueryExceedMemQuota prints a log when memory usage of connID is out of memory quota.
Run starts a expensive query checker goroutine at the start time of the server.
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.