We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4132ed5 commit 9ba7735Copy full SHA for 9ba7735
mp_reader/malloc_stats.py
@@ -510,6 +510,12 @@ def get_memory_over_time(self) -> tuple[
510
byte_counts[i] = living_bytes
511
return (alloc_counts, byte_counts)
512
513
+ def still_reachable(self) -> tuple[int, int]:
514
+ """Return the number of allocations and bytes for which a free event was not recorded"""
515
+
516
+ alloc_counts, byte_counts = self.get_memory_over_time()
517
+ return int(alloc_counts[-1]), int(byte_counts[-1])
518
519
@dataclass
520
class ObjectTree:
521
type_name: str
0 commit comments