package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

GetQueryLevelStats returns all the top-level stats in a QueryLevelStats struct.
MakeQueryLevelStatsWithErr creates a QueryLevelStatsWithErr from a QueryLevelStats and error.
NewFlowsMetadata creates a FlowsMetadata for the given physical plan information.
NewTraceAnalyzer creates a TraceAnalyzer with the corresponding physical plan.
PopulateKVMVCCStats adds data from the input ScanStats to the input KVStats.
ShouldCollectStats is a helper function used to determine if a processor should collect stats.

# Structs

ContentionEventsListener calculates the cumulative contention time across all kvpb.ContentionEvents seen by the listener.
FlowsMetadata contains metadata extracted from flows that comprise a single physical plan.
QueryLevelStats returns all the query level stats that correspond to the given traces and flow metadata.
QueryLevelStatsWithErr is the same as QueryLevelStats, but also tracks if an error occurred while getting query-level stats.
ScanStats contains statistics on the internal MVCC operators used to satisfy a scan.
ScanStatsListener aggregates all kvpb.ScanStats objects into a single ScanStats object.
TenantConsumptionListener aggregates consumed RUs from all kvpb.TenantConsumption events seen by the listener.
TraceAnalyzer is a struct that helps calculate top-level statistics from a flow metadata and an accompanying trace of the flows' execution.