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

# Functions

New returns a new instance of Container.
NewStmtStatsIterator returns a StmtStatsIterator.
NewTempContainerFromExistingStmtStats creates a new Container by ingesting a slice of serverpb.StatementsResponse_CollectedStatementStatistics sorted by Key.KeyData.App field.
NewTempContainerFromExistingTxnStats creates a new Container by ingesting a slice of CollectedTransactionStatistics sorted by .StatsData.App field.
NewTxnStatsIterator returns a new instance of TxnStatsIterator.

# Variables

DiscardedStatsLogInterval specifies the interval between log emissions for discarded statement and transaction statistics due to reaching the SQL statistics memory limit.
ErrExecStatsFingerprintFlushed is returned from the Container when the stats object for the fingerprint has been flushed to system table before the appstatspb.ExecStats can be recorded.
ErrFingerprintLimitReached is returned from the Container when we have more fingerprints than the limit specified in the cluster setting.
ErrMemoryPressure is returned from the Container when we have reached the memory limit allowed.

# Structs

Container holds per-application statement and transaction statistics.
StmtStatsIterator is an iterator that iterates over the statement statistics inside of a ssmemstorage.Container.
TxnStatsIterator is an iterator that iterates over the transaction statistics inside a ssmemstorage.Container.