traces

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeCalls

func AnalyzeCalls(trace *Traces)

AnalyzeCalls scans through the ops, and assigns context-addresses to the lines.

func ParseHex

func ParseHex(s string) (*big.Int, bool)

ParseHex parses s as a 256 bit integer in hexadecimal syntax. Leading zeros are accepted. The empty string parses as zero.

func ShowHex

func ShowHex(data, prevData []byte, table *tview.Table)

ShowHex displays a classic hexdump using the table. if prevdata is non-nil, all diffs between data and prevdata are highlighted

Types

type TraceLine

type TraceLine struct {
	// contains filtered or unexported fields
}

func (*TraceLine) CallStack

func (t *TraceLine) CallStack() []*callInfo

func (*TraceLine) Depth

func (t *TraceLine) Depth() int

func (*TraceLine) Equals

func (t *TraceLine) Equals(other *TraceLine) bool

func (*TraceLine) Get

func (t *TraceLine) Get(title string) string

func (*TraceLine) Memory

func (t *TraceLine) Memory() []byte

func (*TraceLine) Op

func (t *TraceLine) Op() byte

func (*TraceLine) Stack

func (t *TraceLine) Stack() []*big.Int

func (*TraceLine) Step

func (t *TraceLine) Step() uint64

type Traces

type Traces struct {
	Ops  []*TraceLine
	Errs []string
}

func ReadFile

func ReadFile(location string) (*Traces, error)

ReadFile reads a trace from either a json-lines file or json-file, optionally snappy encoded

func (*Traces) Get

func (traces *Traces) Get(index int) *TraceLine

Jump to

Keyboard shortcuts

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