Skip to content

miniproto.observability.MemoryDelta.leak_suspected

miniproto.observability.MemoryDelta.leak_suspected

Section titled “miniproto.observability.MemoryDelta.leak_suspected”
leak_suspected(*, rss_threshold_bytes: int = 64 * 1024 * 1024) -> bool

Report whether reported RSS/peak-RSS growth exceeds the configured threshold.

Parameters:

  • rss_threshold_bytes (int) – Strict reported-RSS growth threshold; defaults to 64 MiB.

Returns:

  • boolTrue only when both RSS snapshots exist and reported growth exceeds the threshold.
  • bool – On Unix this evaluates lifetime-peak RSS growth, not a leak diagnosis from current RSS.