vibeqc.MemoryEstimate

class vibeqc.MemoryEstimate(by_category=<factory>, headroom_factor=1.2)[source]

Bases: object

Peak memory estimate for a calculation.

All byte counts are integers (pre-headroom). total_bytes multiplies the sum of by_category by headroom_factor so the headline figure already carries a safety margin.

Parameters:
__init__(by_category=<factory>, headroom_factor=1.2)
Parameters:
Return type:

None

Methods

__init__([by_category, headroom_factor])

format([available, status])

Render the standard memory-report block.

Attributes

by_category: dict[str, int]
headroom_factor: float = 1.2
property raw_total_bytes: int
property total_bytes: int
property total_gb: float
format(available=None, *, status='Proceeding')[source]

Render the standard memory-report block. available is the machine’s available RAM in bytes; if None we probe live.

Parameters:
  • available (int | None)

  • status (Literal['Proceeding', 'ABORTING', 'Proceeding (override)'])

Return type:

str