Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func CallerStackTrace() (stackTrace string)
 - func ClosureStackTrace(functionPointer interface{}) (stackTrace string)
 - func DumpGoRoutinesOnShutdown()
 - func FunctionName(functionPointer interface{}) string
 - func GetEnabled() bool
 - func GoroutineID() uint64
 - func SetEnabled(newEnabled bool)
 - func StackTrace(allGoRoutines bool, skipFrames int) string
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( // DeadlockDetectionTimeout contains the duration to wait before assuming a deadlock. DeadlockDetectionTimeout = 5 * time.Second )
Functions ¶
func CallerStackTrace ¶
func CallerStackTrace() (stackTrace string)
CallerStackTrace returns a formatted stack trace of the caller of this function.
func ClosureStackTrace ¶
func ClosureStackTrace(functionPointer interface{}) (stackTrace string)
    ClosureStackTrace returns a formatted stack trace for the given function pointer.
func DumpGoRoutinesOnShutdown ¶
func DumpGoRoutinesOnShutdown()
DumpGoRoutinesOnShutdown dumps the stack traces of all goroutines on shutdown.
func FunctionName ¶
func FunctionName(functionPointer interface{}) string
    FunctionName returns the name of the generic function pointer.
func StackTrace ¶
StackTrace returns a goroutine stack trace. If the allGoRoutines parameter is false, then it only returns the stack trace of the calling goroutine. It is possible to skip the first n frames of the stack trace.
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.