xruntime

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 6 Imported by: 2

README

xruntime

Dependencies

  • None

Documents

Types
  • type TraceFrame struct
  • type TraceStack []*TraceFrame
Variables
  • None
Constants
  • None
Functions
  • func RuntimeTraceStack(skip int) TraceStack
  • func RuntimeTraceStackWithInfo(skip int) (stack TraceStack, filename string, funcname string, lineIndex int, lineText string)
Methods
  • func (t *TraceFrame) String() string
  • func (t *TraceStack) String() string

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceFrame added in v1.5.0

type TraceFrame struct {
	// Index represents the index of frame in stack.
	Index int

	// PC represents the frame's program count.
	PC uintptr

	// Filename represents the file full name.
	Filename string

	// FuncFullName represents the function fill name.
	FuncFullName string

	// FuncName represents the function name.
	FuncName string

	// LineIndex represents the line index in the file.
	LineIndex int

	// LineText represents the line text in the file.
	LineText string
}

TraceFrame represents a line of the runtime trace stack.

func (*TraceFrame) String added in v1.5.0

func (t *TraceFrame) String() string

String returns the formatted TraceFrame.

type TraceStack added in v1.5.0

type TraceStack []*TraceFrame

TrackStack represents the runtime trace stack, that is a slice of TraceFrame.

func RuntimeTraceStack added in v1.5.0

func RuntimeTraceStack(skip int) TraceStack

RuntimeTraceStack returns a slice of TraceFrame from runtime trace stacks using given skip.

func RuntimeTraceStackWithInfo added in v1.5.0

func RuntimeTraceStackWithInfo(skip int) (stack TraceStack, filename string, funcname string, lineIndex int, lineText string)

RuntimeTraceStackWithInfo get a slice of TraceFrame, with some information from the first trace stack line using given skip.

func (*TraceStack) String added in v1.5.0

func (t *TraceStack) String() string

String returns the formatted TraceStack.

Jump to

Keyboard shortcuts

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