Module metering

Source
Expand description

metering is a middleware for tracking how many operators are executed in total and putting a limit on the total number of operators executed. The WebAssembly instance execution is stopped when the limit is reached.

§Example

See the metering detailed and complete example.

Structs§

FunctionMetering
The function-level metering middleware.
Metering
The module-level metering middleware.
MeteringGlobalIndexes 🔒

Enums§

MeteringPoints
Represents the type of the metering points, either Remaining or Exhausted.

Functions§

get_remaining_points
Get the remaining points in an [Instance].
is_accounting
Returns true if and only if the given operator is an accounting operator. Accounting operators do additional work to track the metering points.
set_remaining_points
Set the new provided remaining points in an [Instance].