debug

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package debug interfaces Go runtime debugging facilities. This package is mostly glue code making these facilities available through the CLI and RPC subsystem. If you want to use them from Go code, use package runtime instead.

Index

Constants

This section is empty.

Variables

View Source
var Handler = new(HandlerT)

Handler is the global debugging handler.

Functions

func Exit

func Exit()

Exit stops all running profiles, flushing their output to the respective file.

func FreeOSMemory

func FreeOSMemory()

* implicit return memory to system

func LoudPanic

func LoudPanic(x interface{})

LoudPanic panics in a way that gets all goroutine stacks printed on stderr.

func PrintOrigin

func PrintOrigin(yesOrNot bool)

func SetupLogger

func SetupLogger(printOrigin bool, level int, vmodule string, logDir string) error

func Verbosity

func Verbosity(level int)

func Vmodule

func Vmodule(pattern string) error

Types

type HandlerT

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

HandlerT implements the debugging API. Do not create values of this type, use the one in the Handler variable instead.

func (*HandlerT) StopCPUProfile

func (h *HandlerT) StopCPUProfile() error

StopCPUProfile stops an ongoing CPU profile.

Jump to

Keyboard shortcuts

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