dbg

package
v9.4.16+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 DumpHeap

func DumpHeap()

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 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