Documentation ¶
Index ¶
- Constants
- Variables
- type Metricer
- type Metrics
- func (m *Metrics) RecordFailure(vmType types.TraceType)
- func (m *Metrics) RecordInvalid(vmType types.TraceType)
- func (m *Metrics) RecordSuccess(vmType types.TraceType)
- func (m *Metrics) RecordVmExecutionTime(vmType string, dur time.Duration)
- func (m *Metrics) RecordVmMemoryUsed(vmType string, memoryUsed uint64)
- func (m *Metrics) Registry() *prometheus.Registry
- type Runner
Constants ¶
View Source
const Namespace = "op_challenger_runner"
Variables ¶
View Source
var (
ErrUnexpectedStatusCode = errors.New("unexpected status code")
)
Functions ¶
This section is empty.
Types ¶
type Metricer ¶
type Metricer interface { vm.Metricer contractMetrics.ContractMetricer RecordFailure(vmType types.TraceType) RecordInvalid(vmType types.TraceType) RecordSuccess(vmType types.TraceType) }
type Metrics ¶
type Metrics struct { *contractMetrics.ContractMetrics // contains filtered or unexported fields }
func NewMetrics ¶
func NewMetrics() *Metrics
func (*Metrics) RecordFailure ¶
func (*Metrics) RecordInvalid ¶
func (*Metrics) RecordSuccess ¶
func (*Metrics) RecordVmExecutionTime ¶
func (*Metrics) RecordVmMemoryUsed ¶
func (*Metrics) Registry ¶
func (m *Metrics) Registry() *prometheus.Registry
Click to show internal directories.
Click to hide internal directories.