Module wasmer_middlewares::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
Structs§
- The function-level metering middleware.
- The module-level metering middleware.
Enums§
- Represents the type of the metering points, either
Remaining
orExhausted
.
Functions§
- Get the remaining points in an [
Instance
][wasmer::Instance]. - Returns
true
if and only if the given operator is an accounting operator. Accounting operators do additional work to track the metering points. - Set the new provided remaining points in an [
Instance
][wasmer::Instance].