Documentation ¶
Index ¶
- type Meter
- func (m *Meter) ComputationIntensities() interfaceMeter.MeteredComputationIntensities
- func (m *Meter) MemoryIntensities() interfaceMeter.MeteredMemoryIntensities
- func (m *Meter) MergeMeter(child interfaceMeter.Meter, enforceLimits bool) error
- func (m *Meter) MeterComputation(_ common.ComputationKind, _ uint) error
- func (m *Meter) MeterMemory(_ common.MemoryKind, _ uint) error
- func (m *Meter) NewChild() interfaceMeter.Meter
- func (m *Meter) TotalComputationLimit() uint
- func (m *Meter) TotalComputationUsed() uint
- func (m *Meter) TotalMemoryLimit() uint
- func (m *Meter) TotalMemoryUsed() uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meter ¶
type Meter struct{}
Meter is a noop meter
func (*Meter) ComputationIntensities ¶
func (m *Meter) ComputationIntensities() interfaceMeter.MeteredComputationIntensities
ComputationIntensities returns an empty map
func (*Meter) MemoryIntensities ¶
func (m *Meter) MemoryIntensities() interfaceMeter.MeteredMemoryIntensities
MemoryIntensities returns an empty map
func (*Meter) MergeMeter ¶
func (m *Meter) MergeMeter(child interfaceMeter.Meter, enforceLimits bool) error
MergeMeter merges two noop meters
func (*Meter) MeterComputation ¶
func (m *Meter) MeterComputation(_ common.ComputationKind, _ uint) error
MeterComputation is a noop
func (*Meter) MeterMemory ¶
func (m *Meter) MeterMemory(_ common.MemoryKind, _ uint) error
MeterMemory is a noop
func (*Meter) NewChild ¶
func (m *Meter) NewChild() interfaceMeter.Meter
NewChild returns a new noop meter
func (*Meter) TotalComputationLimit ¶
TotalComputationLimit always returns zero
func (*Meter) TotalComputationUsed ¶
TotalComputationUsed always returns zero
func (*Meter) TotalMemoryLimit ¶
TotalMemoryLimit always returns zero
func (*Meter) TotalMemoryUsed ¶
TotalMemoryUsed always returns zero
Click to show internal directories.
Click to hide internal directories.