debug

package
v0.0.0-...-5d85a61 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags = []cli.Flag{
	verbosityFlag, vmoduleFlag, backtraceAtFlag, debugFlag,
	pprofFlag, pprofAddrFlag, pprofPortFlag,
	memprofilerateFlag, blockprofilerateFlag, cpuprofileFlag, traceFlag,
}
View Source
var Handler = new(HandlerT)

Functions

func Exit

func Exit()

func LoudPanic

func LoudPanic(x interface{})

func Setup

func Setup(ctx *cli.Context) error

Types

type HandlerT

type HandlerT struct {
	// contains filtered or unexported fields
}

func (*HandlerT) BacktraceAt

func (*HandlerT) BacktraceAt(location string) error

func (*HandlerT) BlockProfile

func (*HandlerT) BlockProfile(file string, nsec uint) error

func (*HandlerT) CpuProfile

func (h *HandlerT) CpuProfile(file string, nsec uint) error

func (*HandlerT) FreeOSMemory

func (*HandlerT) FreeOSMemory()

func (*HandlerT) GcStats

func (*HandlerT) GcStats() *debug.GCStats

func (*HandlerT) GoTrace

func (h *HandlerT) GoTrace(file string, nsec uint) error

func (*HandlerT) MemStats

func (*HandlerT) MemStats() *runtime.MemStats

func (*HandlerT) MutexProfile

func (*HandlerT) MutexProfile(file string, nsec uint) error

func (*HandlerT) SetBlockProfileRate

func (*HandlerT) SetBlockProfileRate(rate int)

func (*HandlerT) SetGCPercent

func (*HandlerT) SetGCPercent(v int) int

func (*HandlerT) SetMutexProfileFraction

func (*HandlerT) SetMutexProfileFraction(rate int)

func (*HandlerT) Stacks

func (*HandlerT) Stacks() string

func (*HandlerT) StartCPUProfile

func (h *HandlerT) StartCPUProfile(file string) error

func (*HandlerT) StartGoTrace

func (h *HandlerT) StartGoTrace(file string) error

func (*HandlerT) StopCPUProfile

func (h *HandlerT) StopCPUProfile() error

func (*HandlerT) StopGoTrace

func (h *HandlerT) StopGoTrace() error

func (*HandlerT) Verbosity

func (*HandlerT) Verbosity(level int)

func (*HandlerT) Vmodule

func (*HandlerT) Vmodule(pattern string) error

func (*HandlerT) WriteBlockProfile

func (*HandlerT) WriteBlockProfile(file string) error

func (*HandlerT) WriteMemProfile

func (*HandlerT) WriteMemProfile(file string) error

func (*HandlerT) WriteMutexProfile

func (*HandlerT) WriteMutexProfile(file string) error

Jump to

Keyboard shortcuts

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