MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / get_stat

Function get_stat

tests/test_memory.py:35–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 import tracemalloc
34 tracemalloc.start(10)
35 def get_stat():
36 current, peak = tracemalloc.get_traced_memory()
37 return current
38 elif stat_type == 'psutil':
39 # We use RSS, as used by mprof.
40 import psutil

Callers 2

test_2791Function · 0.85
test_4125Function · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…