debug

package
v4.0.0-...-7b436cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: BSD-2-Clause Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL