package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
CtxWithProcessInfo .
CtxWithSQLAndPlanDigest wrap the ctx with sql digest and plan digest.
CtxWithSQLDigest wrap the ctx with sql digest.
NewSQLCPUCollector create a SQLCPUCollector.
# Structs
SQLCPUCollector uses to consume cpu profile from globalCPUProfiler, then parse the SQL CPU usage from the cpu profile data.
SQLCPUTimeRecord represents a single record of how much cpu time a sql plan consumes in one second.
# Interfaces
Collector uses to collect SQL execution cpu time.
ProcessCPUTimeUpdater Introduce this interface due to the dependency cycle.