package
20.2.19+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
NewHeapProfiler creates a HeapProfiler.
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
HeapFileNamePrefix is the prefix of files containing pprof data.
HeapFileNameSuffix is the suffix of files containing pprof data.
JemallocFileNamePrefix is the prefix of jemalloc profile dumps.
JemallocFileNameSuffix is the file name extension of jemalloc profile dumps.
StatsFileNamePrefix is the prefix of memory stats dumps.
StatsFileNameSuffix is the suffix of memory stats dumps.
# Structs
HeapProfiler is used to take Go heap profiles.
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.