PyDocs

Nav

Debugging and profiling

Snapshot

  • Snapshot(traces, traceback_limit)
Snapshot of traces of memory blocks allocated by Python.
Members of Snapshot

c

compare_to
Compute the differences with an old snapshot old_snapshot.

d

dump
Write the snapshot into a file.

f

filter_traces
Create a new Snapshot instance with a filtered traces sequence, filters is a list of Filter or DomainFilter instances.

l

load
Load a snapshot from a file.

s

statistics
Group statistics by key_type.

t

traceback_limit
Maximum number of frames stored in the traceback of traces: result of the get_traceback_limit() when the snapshot was taken.
traces
Traces of all memory blocks allocated by Python: sequence of Trace instances.
0 Examples
No examples for tracemalloc/Snapshot.
See Also
No see-alsos for tracemalloc/Snapshot
0 Notes
No notes for Snapshot