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 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 ¶
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 ¶
StopCPUProfile stops an ongoing CPU profile.
Click to show internal directories.
Click to hide internal directories.