package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
NewActiveQueryProfiler creates a NewQueryProfiler.
NewCPUProfiler creates a new CPUProfiler.
NewHeapProfiler creates a HeapProfiler.
NewMemoryMonitoringProfiler returns a new MemoryMonitoringProfiler.
NewNonGoAllocProfiler creates a NonGoAllocProfiler.
NewStatsProfiler creates a StatsProfiler.
SetJemallocHeapDumpFn is used by the CLI package to inject the jemalloc heap collection function as a dependency.
# Constants
QueryFileNamePrefix is the prefix of files containing pprof data.
QueryFileNameSuffix is the suffix of files containing query data.
# Variables
ActiveQueryDumpsEnabled wraps "diagnostics.active_query_dumps.enabled"
diagnostics.active_query_dumps.enabled enables the periodic writing of active queries on a node to disk, in *.csv format, if a node is determined to be under memory pressure.
# Structs
ActiveQueryProfiler is used to take profiles of current active queries across all sessions within a sql.SessionRegistry.
CPUProfiler is used to take CPU profiles.
HeapProfiler is used to take Go heap profiles.
MemoryMonitoringProfiler is used to periodically dump the node's memory monitoring state.
NonGoAllocProfiler is used to take heap profiles for allocations performed outside of Go.
StatsProfiler is used to take snapshots of the overall memory statistics to break down overall RSS memory usage.