Documentation
¶
Overview ¶
Package debug implements some debug helpers that are used in all ingesters
Index ¶
Constants ¶
View Source
const ( CPU_SLEEP = 10 * time.Second MAX_STACK_SIZE = 256 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func DumpDebugFiles ¶
func DumpDebugFiles(dir string)
DumpDebugFiles generates a stacktrace, memory profile, and CPU profile into the provided directory. These are useful for runtime debugging and profiling.
func HandleDebugSignals ¶
func HandleDebugSignals(name string)
HandleDebugSignals is a SIGUSR1 trap that can be installed at the beginning of runtime to generate a stack trace, memory profile, and CPU profile. It takes a name to be used as a directory prefix, and creates files in the system temporary directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.