Documentation
¶
Index ¶
- Constants
- Variables
- func CallingFunctionInfo(pos int) (function, file string, line int)
- func CallingFunctionShortInfo(pos int) (function, shortFunction, file, shortFile string, line int)
- func CallingFunctionString(pos int) string
- func CallingStackString() string
- func CallingStackStringAt(index int) string
- func Consume(p ...any)
- func FileLineAndCallingFunctionString(pos int, useShortFile bool) string
- func LoadStoredRestartContextError()
- func PrintAllGoroutines()
- func PrintMemoryStats()
- func RecoverFromPanic(exit bool, invokeFunc string)
- func SetProfilingHandler(router *mux.Router)
- func SetupSignalHandler()
- func StoreAndExitError(err error, exit bool)
Constants ¶
View Source
const (
ProfilingURLPrefix = "debug/pprof/"
)
Variables ¶
View Source
var ( IsInTests = (strings.HasSuffix(os.Args[0], ".test")) GetOpenFileCountFunc func() int AverageCPUFunc func() float64 GetOngoingProcsCountFunc func() int TimersGoingCountFunc func() int MakeContextErrorForSignalRestartFunc func(pos int, invokeFunc string, parts ...any) error KeyValueSaveContextErrorFunc func(key string, object any) KeyValueGetAndDeleteContextErrorFunc func(key string) (err error) AllProfileTypes = []string{"heap", "cpu", "block", "mutex"} HandleRestartFunc func(err error) )
View Source
var AppURLPrefix func() string
Functions ¶
func CallingFunctionInfo ¶
func CallingFunctionString ¶
func CallingStackString ¶
func CallingStackString() string
func CallingStackStringAt ¶
func LoadStoredRestartContextError ¶
func LoadStoredRestartContextError()
func PrintAllGoroutines ¶
func PrintAllGoroutines()
func PrintMemoryStats ¶
func PrintMemoryStats()
func RecoverFromPanic ¶
func SetProfilingHandler ¶
func SetupSignalHandler ¶
func SetupSignalHandler()
func StoreAndExitError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.