Python stdlib module — tracemalloc. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.get_object_traceback()Neutralget_object_traceback(obj)
Get the traceback where the Python object *obj* was allocated.
.get_traceback_limit()Neutralget_traceback_limit()
Get the maximum number of frames stored in the traceback of a trace.
.get_traced_memory()Neutralget_traced_memory()
Get the current size and peak size of memory blocks traced by tracemalloc.
.get_tracemalloc_memory()Neutralget_tracemalloc_memory()
Get the memory usage in bytes of the tracemalloc module.
.is_tracing()Neutralis_tracing()
Return True if the tracemalloc module is tracing Python memory allocations.
.reset_peak()Neutralreset_peak()
Set the peak size of memory blocks traced by tracemalloc to the current size.
.take_snapshot()Neutraltake_snapshot()
Take a snapshot of traces of memory blocks allocated by Python.
| FQN | Field | |
|---|---|---|
| tracemalloc | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import tracemalloc