Expand description
Helpers for cooperative execution time and memory limits.
Structs§
- Execution
Timer - Cooperative time-limit tracker shared across interpreter and VM loops.
- Execution
Timer Config - Public configuration for the cooperative execution time limiter.
Enums§
- Limit
Error - Errors reported when execution time or memory ceilings are enforced.
- Time
Source Registration Error
Traits§
- Time
Source - Monotonic time provider.
Functions§
- check_
memory_ limit_ if_ needed - enforce_
memory_ limit - fallback_
execution_ timer_ config - Returns the process-wide fallback configuration for the execution time limiter, if any.
- monotonic_
now - Returns the duration supplied by the chosen source for this build.
- set_
fallback_ execution_ timer_ config - Sets the process-wide fallback configuration for the execution time limiter. Engine instances can
override this fallback via
Engine::set_execution_timer_config. - set_
time_ source