voiage.contracts.bundle.ContractPerformanceBudget
Portable upper bounds for the small deterministic bundle verification lane.
Methods
Section titled “Methods”enforce
Section titled “enforce”enforce([positional or keyword] self: None = None, [keyword-only] cpu_seconds: float = None, [keyword-only] peak_memory_bytes: int = None, [keyword-only] allocation_count: int = None, [keyword-only] serialization_bytes: int = None) -> SelfRaise with the precise regressed metric, otherwise return this budget.
Parameters:
selfcpu_secondsfloatpeak_memory_bytesintallocation_countintserialization_bytesint
Returns: Self