MemoryStats
Python allocation measurements in a line's memory field. For RAM, see
ProcessMemoryStats.
dataclass linescope.model.MemoryStats[source]
Describe allocation measurements in bytes, separate from process RAM.
The shared collector measures net retained Python allocations by allocation site. It leaves allocation peaks unavailable; process RSS belongs to ProcessMemoryStats. Custom collectors can supply their own allocation measurements, keeping missing values unknown.
| Attributes |
Signed allocation change in bytes; None means unavailable. Highest measured allocated bytes; None means unavailable. |
See Also
Describe measurements a collector can actually provide.
Aggregate a visible source line without inventing unsupported hit counts.
Keep wall duration separate from cumulative executor work.