package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
AttachAndRegisterProcessInfo attach the ProcessInfo into Goroutine labels.
AttachAndRegisterSQLInfo attach the sql information into Top SQL and register the SQL meta information.
AttachSQLAndPlanInfo attach the sql and plan information into Top SQL.
Close uses to close and release the top sql resource.
MockHighCPULoad mocks high cpu load, only use in failpoint test.
RegisterPlan uses to register plan information into Top SQL.
RegisterPubSubServer registers TopSQLPubSubService to the given gRPC server.
RegisterSQL uses to register SQL information into Top SQL.
SetupTopSQL sets up the top-sql worker.
SetupTopSQLForTest sets up the global top-sql reporter, it's exporting for test.
# Constants
MaxBinaryPlanSize exports for testing.
MaxSQLTextSize exports for testing.