package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
FormatDuration uses to format duration, this function will prune precision before format duration.
MergeTiFlashRUConsumption merge execution summaries from selectResponse into ruDetails.
NewConcurrencyInfo creates new executor's concurrencyInfo.
NewRootRuntimeStats returns a new RootRuntimeStats.
NewRuntimeStatsColl creates new executor collector.
# Constants
BackoffTimeStr means the time of all back-off.
BackoffTypesStr means the backoff type.
CommitBackoffTimeStr means the time of commit backoff.
CommitPrimaryRPCDetailStr means the details of the slowest RPC during the transaction 2pc commit process.
CommitTimeStr means the time of commit.
CopTimeStr represents the sum of cop-task time spend in TiDB distSQL.
GetCommitTSTimeStr means the time of getting commit ts.
GetLatestTsTimeStr means the time of getting latest ts in async commit and 1pc.
GetSnapshotTimeStr means the time spent on getting an engine snapshot.
LocalLatchWaitTimeStr means the time of waiting in local latch.
LockKeysTimeStr means the time interval between pessimistic lock wait start and lock got obtain.
MaxDetailsNumsForOneQuery is the max number of details to keep for P90 for one query.
PrewriteRegionStr means the count of region when pre-write.
PreWriteTimeStr means the time of pre-write.
ProcessKeysStr means the total processed keys.
ProcessTimeStr represents the sum of process time of all the coprocessor tasks.
RequestCountStr means the request count.
ResolveLockTimeStr means the time of resolving lock.
RocksdbBlockCacheHitCountStr means the count of rocksdb block cache hit.
RocksdbBlockReadByteStr means the bytes of rocksdb block read.
RocksdbBlockReadCountStr means the count of rocksdb block read.
RocksdbBlockReadTimeStr means the time spent on rocksdb block read.
RocksdbDeleteSkippedCountStr means the count of rocksdb delete skipped count.
RocksdbKeySkippedCountStr means the count of rocksdb key skipped count.
SlowestPrewriteRPCDetailStr means the details of the slowest RPC during the transaction 2pc prewrite process.
TotalKeysStr means the total scan keys.
TpBasicCopRunTimeStats is the tp for BasicCopRunTimeStats.
TpBasicRuntimeStats is the tp for BasicRuntimeStats.
TpFKCascadeRuntimeStats is the tp for FKCascadeRuntimeStats.
TpFKCheckRuntimeStats is the tp for FKCheckRuntimeStats.
TpHashAggRuntimeStat is the tp for HashAggRuntimeStat.
TpHashJoinRuntimeStats is the tp for HashJoinRuntimeStats.
TpIndexLookUpJoinRuntimeStats is the tp for IndexLookUpJoinRuntimeStats.
TpIndexLookUpRunTimeStats is the tp for IndexLookUpRunTimeStats.
TpIndexMergeRunTimeStats is the tp for IndexMergeRunTimeStats.
TpInsertRuntimeStat is the tp for InsertRuntimeStat.
TpJoinRuntimeStats is the tp for JoinRuntimeStats.
TpRuntimeStatsWithCommit is the tp for RuntimeStatsWithCommit.
TpRuntimeStatsWithConcurrencyInfo is the tp for RuntimeStatsWithConcurrencyInfo.
TpRuntimeStatsWithSnapshot is the tp for RuntimeStatsWithSnapshot.
TpRURuntimeStats is the tp for RURuntimeStats.
TpSelectResultRuntimeStats is the tp for SelectResultRuntimeStats.
TpSlowQueryRuntimeStat is the tp for SlowQueryRuntimeStat.
TpSnapshotRuntimeStats is the tp for SnapshotRuntimeStats.
TpUpdateRuntimeStats is the tp for UpdateRuntimeStats.
TxnRetryStr means the count of transaction retry.
WaitPrewriteBinlogTimeStr means the time of waiting prewrite binlog finished when transaction committing.
WaitTimeStr means the time of all coprocessor wait.
WriteKeysStr means the count of keys in the transaction.
WriteSizeStr means the key/value size in the transaction.
# Variables
StmtExecDetailKey used to carry StmtExecDetail info in context.Context.
# Structs
BasicRuntimeStats is the basic runtime stats.
ConcurrencyInfo is used to save the concurrency information of the executor operator.
CopRuntimeStats collects cop tasks' execution info.
CopTasksDetails collects some useful information of cop-tasks during execution.
DetailsNeedP90 contains execution detail information which need calculate P90.
DurationWithAddr is a wrapper of time.Duration and string to implement the canGetFloat64 interface.
ExecDetails contains execution detail information.
P90BackoffSummary contains execution summary for a backoff type.
P90Summary contains execution summary for cop tasks.
Percentile is a struct to calculate the percentile of a series of values.
RootRuntimeStats is the executor runtime stats that combine with multiple runtime stats.
RuntimeStatsColl collects executors's execution info.
RuntimeStatsWithCommit is the RuntimeStats with commit detail.
RuntimeStatsWithConcurrencyInfo is the BasicRuntimeStats with ConcurrencyInfo.
RURuntimeStats is a wrapper of util.RUDetails, which implements the RuntimeStats interface.
StmtExecDetails contains stmt level execution detail info.
SyncExecDetails is a synced version of `ExecDetails` and its `P90Summary`.
TiFlashScanContext is used to express the table scan information in tiflash.
TiFlashWaitSummary is used to express all kinds of wait information in tiflash.
# Interfaces
RuntimeStats is used to express the executor runtime information.