Skip to content
Projects

scope_profiler.memray

Optional Memray allocation-trace integration.

Classes

NameDescription
MemrayAllocationTrackerStart and stop one optional process-wide Memray allocation capture.

MemrayAllocationTrackerclass#

class MemrayAllocationTracker(path: str | Path, *, native_traces: bool = False, trace_python_allocators: bool = False, follow_fork: bool = False)

Start and stop one optional process-wide Memray allocation capture.

pathattributeinstance attribute#

path = Path(path)

startmethod#

def start() -> None

Enable allocation tracking for this process.

stopmethod#

def stop() -> None

Flush and close the capture. Safe to call more than once.