Debug tool tracking Python memory allocations
C Python C++
Clone or download
Pull request Compare This branch is 109 commits ahead, 1 commit behind wyplay:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
patches
tests
.gitignore
COPYING
MANIFEST.in
Makefile
README.rst
_tracemalloc.c
hashtable.c
hashtable.h
setup.py
test_tracemalloc.py
tracemalloc.py
tracemalloc_runner.py

README.rst

pytracemalloc

The tracemalloc module is a debug tool to trace memory blocks allocated by Python. It provides the following information:

  • Traceback where an object was allocated
  • Statistics on allocated memory blocks per filename and per line number: total size, number and average size of allocated memory blocks
  • Compute the differences between two snapshots to detect memory leaks

Websites:

See doc/index.rst for the source of the documentation.