instrumentation

package
v0.0.0-...-d95a457 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStackTrace

func GetStackTrace(all bool) string

GetStackTrace returns a string containing the unabbreviated value of runtime.Stack(all). Be aware that this function may stop the world multiple times in order to obtain the full trace.

func GetStackTraces

func GetStackTraces() map[string][]string

GetStackTraces returns a map of goroutines to string Slice of their respective stack trace.

Types

type SystemStats

type SystemStats struct {
	// Number of goroutines currently running.
	NumGoRoutines int
	// Seconds in userland.
	UserTime float64
	// Seconds in system time.
	SystemTime float64
	// Number of bytes currently allocated.
	BytesAlloc uint64
	// Number of bytes obtained from system.
	BytesFromSystem uint64
	// How long the last GC pause time took in milliseconds.
	GCPauseTimeLast float64
	// Maximum recent GC pause time in milliseconds.
	GCPauseTimeMax float64
	// Total GC pause time in milliseconds.
	GCPauseTimeTotal float64
	// Seconds since last GC pause.
	GCPauseSince float64
}

func GetSystemStats

func GetSystemStats() SystemStats

Jump to

Keyboard shortcuts

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