[Python-announce] pymemtrace 0.3.1 is released
Paul Ross via Python-announce-list <[email protected]> Mon, 23 Mar 2026 12:31:07 +0000
| Newsgroups | gmane.comp.python.announce |
|---|---|
| Message-ID | <CAFQeoW6WEzYDn7QZzYFGmcExZyYi2VCqj-gEU-go=fHeogZt8A@mail.gmail.com> |
I am proud to announce version 0.3.1 of pymemtrace, a collection of tools
for tracking the memory usage of Python objects and processes.
Two new tools have been added:
- process_tree.py is capable of logging a process *and* all of its
children. This reports other resource usage, such as CPU%, as well as
memory. Examples:
https://pymemtrace.readthedocs.io/en/latest/examples/process_tree.html
- The cPyMemTrace module now has *Reference Tracing
<https://docs.python.org/3/c-api/profiling.html#reference-tracing>*
(Python 3.13+) that can record every Python object allocation and
de-allocation. Examples:
https://pymemtrace.readthedocs.io/en/latest/examples/c_py_mem_trace.html#reference-tracing
A complete description of all the tools, with worked examples, is in the
PyPi description: https://pypi.org/project/pymemtrace/#description
Other changes:
- Add a decorator for process.py.
- cPyMemTrace:
- Add decorators for Python functions for Profile, Trace and
ReferenceTracing.
- Add an option to log to a specific file.
- Add an API write_message_to_log() to inject text into the log
file.
- Better structure of the log file format.
- Fix stacking pop() issue with trace/profile functions with a
linked list of tTraceFileWrapperLinkedList.
- Add support for Python 3.14, remove support for Python 3.7
- Supported Python versions are: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14
- The extensive documentation, with worked examples, now runs to 120+
pages.
- Development Status :: 5 - Production/Stable
PyPi: https://pypi.org/project/pymemtrace
Documentation: https://pymemtrace.readthedocs.io/en/latest/index.html
Project: https://github.com/paulross/pymemtrace
Paul Ross
_______________________________________________
Python-announce-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-announce-list.python.org
Member address: [email protected]