Documentation ¶
Overview ¶
包跟踪程序是JavaScript事务跟踪程序的集合。
Index ¶
- type Tracer
- func (jst *Tracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) error
- func (jst *Tracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, memory *vm.Memory, ...) error
- func (jst *Tracer) CaptureStart(from common.Address, to common.Address, create bool, input []byte, gas uint64, ...) error
- func (jst *Tracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, memory *vm.Memory, ...) error
- func (jst *Tracer) GetResult() (json.RawMessage, error)
- func (jst *Tracer) Stop(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
跟踪程序提供跟踪程序的实现,该跟踪程序评估JavaScript 每个VM执行步骤的函数。
func (*Tracer) CaptureEnd ¶
在调用完成后调用CaptureEnd以完成跟踪。
func (*Tracer) CaptureFault ¶
func (jst *Tracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, memory *vm.Memory, stack *vm.Stack, contract *vm.Contract, depth int, err error) error
CaptureFault实现跟踪程序接口来跟踪执行错误 运行操作码时。
func (*Tracer) CaptureStart ¶
func (jst *Tracer) CaptureStart(from common.Address, to common.Address, create bool, input []byte, gas uint64, value *big.Int) error
CaptureStart实现跟踪程序接口以初始化跟踪操作。
func (*Tracer) CaptureState ¶
func (jst *Tracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, memory *vm.Memory, stack *vm.Stack, contract *vm.Contract, depth int, err error) error
CaptureState实现跟踪接口来跟踪VM执行的单个步骤。
Click to show internal directories.
Click to hide internal directories.