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

# Packages

Package replay implements a debug-server HTTP handler for managing storage-level workload capture.

# Functions

CPUProfileDo invokes the closure while enabling (and disabling) the supplied CPUProfileMode.
CPUProfileHandler is replacement for `pprof.Profile` that supports additional options.
CPUProfileOptionsFromRequest parses the `seconds` and `labels` fragments from the URL and populates CPUProfileOptions from it.
FormatLSMStats combines LSM stats from multiple stores into a single string.
GetLSMStats creates a mapping between store IDs and LSM stats for all of the provided storage engines.
NewActiveQueriesWriter instantiates and returns a new ActiveQueriesWriter, using the provided sessions slice and io.Writer.
NewServer sets up a debug server.

# Constants

Endpoint is the entry point under which the debug tools are housed.

# Structs

ActiveQueriesWriter writes debug information about the active queries for each session in the SessionRegistry to CSV format, using the provided io.Writer.
CPUProfileOptions contains options for generating a CPU profile.
Server serves the /debug/* family of tools.