Documentation
¶
Index ¶
- func NewTxGasDimensionByOpcodeLogger(cfg json.RawMessage) (*tracing.Hooks, error)
- type TxGasDimensionByOpcodeLiveTraceErrorInfo
- type TxGasDimensionByOpcodeLiveTracer
- func (t *TxGasDimensionByOpcodeLiveTracer) OnBlockEnd(err error)
- func (t *TxGasDimensionByOpcodeLiveTracer) OnBlockEndMetrics(blockNumber uint64, blockInsertDuration time.Duration)
- func (t *TxGasDimensionByOpcodeLiveTracer) OnBlockStart(ev tracing.BlockEvent)
- func (t *TxGasDimensionByOpcodeLiveTracer) OnFault(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, depth int, ...)
- func (t *TxGasDimensionByOpcodeLiveTracer) OnOpcode(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, rData []byte, ...)
- func (t *TxGasDimensionByOpcodeLiveTracer) OnTxEnd(receipt *types.Receipt, err error)
- func (t *TxGasDimensionByOpcodeLiveTracer) OnTxStart(vm *tracing.VMContext, tx *types.Transaction, from common.Address)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTxGasDimensionByOpcodeLogger ¶
func NewTxGasDimensionByOpcodeLogger( cfg json.RawMessage, ) (*tracing.Hooks, error)
gasDimensionTracer returns a new tracer that traces gas usage for each opcode against the dimension of that opcode takes a context, and json input for configuration parameters
Types ¶
type TxGasDimensionByOpcodeLiveTraceErrorInfo ¶
type TxGasDimensionByOpcodeLiveTraceErrorInfo struct { TxHash string `json:"txHash"` BlockNumber string `json:"blockNumber"` Error string `json:"error"` TracerError string `json:"tracerError,omitempty"` Status uint64 `json:"status"` GasUsed uint64 `json:"gasUsed"` GasUsedForL1 uint64 `json:"gasUsedForL1"` GasUsedForL2 uint64 `json:"gasUsedForL2"` IntrinsicGas uint64 `json:"intrinsicGas"` Dimensions interface{} `json:"dimensions,omitempty"` }
an struct to capture information about errors in tracer execution
type TxGasDimensionByOpcodeLiveTracer ¶
type TxGasDimensionByOpcodeLiveTracer struct { Path string `json:"path"` // Path to directory for output ChainConfig *params.ChainConfig // chain config, needed for the tracer // contains filtered or unexported fields }
gasDimensionTracer struct
func (*TxGasDimensionByOpcodeLiveTracer) OnBlockEnd ¶
func (t *TxGasDimensionByOpcodeLiveTracer) OnBlockEnd(err error)
func (*TxGasDimensionByOpcodeLiveTracer) OnBlockEndMetrics ¶
func (t *TxGasDimensionByOpcodeLiveTracer) OnBlockEndMetrics(blockNumber uint64, blockInsertDuration time.Duration)
func (*TxGasDimensionByOpcodeLiveTracer) OnBlockStart ¶
func (t *TxGasDimensionByOpcodeLiveTracer) OnBlockStart(ev tracing.BlockEvent)
func (*TxGasDimensionByOpcodeLiveTracer) OnTxEnd ¶
func (t *TxGasDimensionByOpcodeLiveTracer) OnTxEnd( receipt *types.Receipt, err error, )
func (*TxGasDimensionByOpcodeLiveTracer) OnTxStart ¶
func (t *TxGasDimensionByOpcodeLiveTracer) OnTxStart( vm *tracing.VMContext, tx *types.Transaction, from common.Address, )
Click to show internal directories.
Click to hide internal directories.