From Newsgroup: comp.lang.python.announce
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
--- Synchronet 3.21f-Linux NewsLink 1.2