Skip to content

miniproto.observability.MemoryMonitor

MemoryMonitor(*, trace_allocations: bool = False) -> None

Collect resource snapshots and optionally manage a temporary tracemalloc session.

Attributes:

Initialize a monitor.

Parameters:

  • trace_allocations (bool) – Start tracemalloc on :meth:start only when it is not already active.