package stacktrace

import "github.com/opencontainers/runc/libcontainer/stacktrace"

Index

Types

type Frame

type Frame struct {
	File     string
	Function string
	Package  string
	Line     int
}

Frame contains all the information for a stack frame within a go program

func NewFrame

func NewFrame(pc uintptr, file string, line int) Frame

NewFrame returns a new stack frame for the provided information

type Stacktrace

type Stacktrace struct {
	Frames []Frame
}

func Capture

func Capture(userSkip int) Stacktrace

Capture captures a stacktrace for the current calling go program

skip is the number of frames to skip

Source Files

capture.go frame.go stacktrace.go

Version
v1.0.0
Published
Jun 17, 2021
Platform
js/wasm
Imports
3 packages
Last checked
3 hours ago

Tools for package owners.