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

Caputure 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
v0.0.7
Published
Jan 26, 2016
Platform
js/wasm
Imports
3 packages
Last checked
3 hours ago

Tools for package owners.