debug

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

type Trace struct {
	Logger zerolog.Logger
	// contains filtered or unexported fields
}

Trace is a struct containing informations about the traces and profiles that have been started, so that they can be stopped correctly by the Stop method.

func Start

func Start(logger zerolog.Logger) Trace

Start starts CPU and memory profiling (depending on the values of the CPS_DEBUG_* environment variables). It returns a Trace, that should be stopped with the Stop method so that the profiles are written.

func (Trace) Stop

func (t Trace) Stop()

Stop stops the traces and profiles, and writes them.

Jump to

Keyboard shortcuts

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