miniproto.observability.ResourceSnapshot
miniproto.observability.ResourceSnapshot
Section titled “miniproto.observability.ResourceSnapshot”ResourceSnapshot(timestamp: float, rss_bytes: int | None, traced_current_bytes: int | None, traced_peak_bytes: int | None, gc_objects: int) -> NonePoint-in-time process and tracemalloc memory counters.
Attributes:
- timestamp (
float) – Wall-clock capture time in seconds since the epoch. - rss_bytes (
int | None) – Reported RSS on Windows or macOS, or lifetime peak RSS on Unix;Noneif unavailable. - traced_current_bytes (
int | None) – Current tracemalloc allocation bytes, if tracing. - traced_peak_bytes (
int | None) – Peak tracemalloc allocation bytes, if tracing. - gc_objects (
int) – Number of objects tracked by the garbage collector.