debug

package
v0.0.0-...-4ecf446 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: AGPL-3.0 Imports: 8 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 {
	// 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() 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