dbg

package
v10.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Path defailt location for debug/profile output
	Path = "/var/cores/"
)

Variables

This section is empty.

Functions

func Assert

func Assert(condition bool, format string, args ...interface{})

Assert Panicf's if the condition evaluates to false.

func DumpGoMemoryTrace

func DumpGoMemoryTrace()

DumpGoMemoryTrace output memory profile to logs.

func DumpGoProfile

func DumpGoProfile() error

DumpGoProfile output goroutines to file.

func DumpGoProfileTo

func DumpGoProfileTo(fname string) error

GoProfileDump output goroutines to file.

func DumpHeap

func DumpHeap()

DumpHeap output heap to file.

func GetHostNamePrefix

func GetHostNamePrefix() string

GetHostNamePrefix return '<hostname>' to use as prefix.

func GetTimeStamp

func GetTimeStamp() string

GetTimeStamp returns 'readable' timestamp with no spaces 'YYYYMMDDHHMMSS'

func HeapDumpTo

func HeapDumpTo(fname string)

HeapDump output heap to filename.

func LogErrorAndPanicf

func LogErrorAndPanicf(err error, format string, args ...interface{})

func Panicf

func Panicf(format string, args ...interface{})

Panicf outputs error message, dumps threads and exits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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