Skip to main content

Module resource_limits

Module resource_limits 

Source
Expand description

Runtime resource limits and sandboxing for the Shape VM.

Provides configurable limits on instruction count, memory usage, wall-clock time, and output bytes. The VM checks these limits during execution and halts with an error when exceeded.

Structs§

ResourceLimits
Configurable resource limits for VM execution.
ResourceUsage
Tracks resource usage during VM execution.

Enums§

ResourceLimitExceeded
Error returned when a resource limit is exceeded.