Documentation
¶
Overview ¶
Package stacktrace provides support for gathering stack traces efficiently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter formats a stack trace into a readable string representation.
func NewFormatter ¶
NewFormatter builds a new Formatter.
func (*Formatter) FormatFrame ¶
FormatFrame formats the given frame.
func (*Formatter) FormatStack ¶
FormatStack formats all remaining frames in the provided stacktrace
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack 捕获堆栈信息
func (*Stack) Count ¶
Count reports the total number of frames in this stacktrace. Count DOES NOT change as Next is called.
Click to show internal directories.
Click to hide internal directories.