profilings

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpStacks

func DumpStacks() string

DumpStacks returns up to (1 << 15) bytes of the current processes stack trace as a string

func DumpStacksToFile

func DumpStacksToFile(filename string)

DumpStacksToFile dumps the stack trace of all current goroutines to the file path provided

func Flush

func Flush(profileName string, profileOutput string) error

func Init

func Init(profileName string, profileOutput string) error

func SetupDumpStacks

func SetupDumpStacks(serviceName string, pid int, cwd string)

SetupDumpStacks creates a goroutine that listens for any signals passed to the Win32 event stackdump-{pid} that is defined on a Global level; each time a signal is detected to this event, it will dump the a stack trace across all goroutines (up to 1 << 15 bytes) to a file within the Windows machine's temp directory. By default, this event can only be signaled by built-in administrators and the local system.

func StackDump added in v0.2.0

func StackDump() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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