diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 2be9c0e137..3e81f39f9c 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.9.1 +current_version = 1.10.0 commit = True message = Prepare for {new_version} release diff --git a/NEWS.rst b/NEWS.rst index 448a875fd3..43bfbff4d8 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -8,6 +8,34 @@ Changelog .. towncrier release notes start +memray 1.10.0 (2023-10-05) +-------------------------- + +Features +~~~~~~~~ + +- Add support for :ref:`inverted flame graphs`. In an inverted flame graph, the + roots are the functions that allocated memory, and the children of any given + node represent the percentage of that node's allocations that can be attributed + to a particular caller. The inverted flame graph is very helpful in analyzing + where memory is being spent in aggregate. You can generate one by passing the + ``--inverted`` flag to ``memray flamegraph``. (#439) +- ``memray attach`` now supports ``--aggregate`` to produce :ref:`aggregated capture files `. (#455) +- ``memray attach`` has been enhanced to allow tracking for only a set period of + time. (#458) +- A new ``memray detach`` command allows you to manually deactivate tracking that + was started by a previous call to ``memray attach``. (#458) +- Python 3.12 is now supported. (#474) + + +Bug Fixes +~~~~~~~~~ + +- Update ``memray attach`` on Linux to prefer GDB over LLDB for injecting itself into the process being attached to. We've had several reports of problems with the Linux LLDB, and hope this change will help give Linux users a better experience by default. You can still explicitly use LLDB on Linux even when GDB is detected by running ``memray attach --method=lldb``. (#449) +- Fix a memory leak in Memray itself when many different capture files are opened by a single Memray process and native stacks are being reported. This issue primarily affected ``pytest-memray``. (#473) +- Fix a crash in MacOS Sonoma when using system Framework libraries, like when using the ``pyobjc`` library. (#477) + + memray 1.9.1 (2023-08-01) ------------------------- diff --git a/news/439.feature.rst b/news/439.feature.rst deleted file mode 100644 index 580498fb17..0000000000 --- a/news/439.feature.rst +++ /dev/null @@ -1,6 +0,0 @@ -Add support for :ref:`inverted flame graphs`. In an inverted flame graph, the -roots are the functions that allocated memory, and the children of any given -node represent the percentage of that node's allocations that can be attributed -to a particular caller. The inverted flame graph is very helpful in analyzing -where memory is being spent in aggregate. You can generate one by passing the -``--inverted`` flag to ``memray flamegraph``. diff --git a/news/449.bugfix.rst b/news/449.bugfix.rst deleted file mode 100644 index 7fadda8fb3..0000000000 --- a/news/449.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Update ``memray attach`` on Linux to prefer GDB over LLDB for injecting itself into the process being attached to. We've had several reports of problems with the Linux LLDB, and hope this change will help give Linux users a better experience by default. You can still explicitly use LLDB on Linux even when GDB is detected by running ``memray attach --method=lldb``. diff --git a/news/455.feature.rst b/news/455.feature.rst deleted file mode 100644 index a6216da624..0000000000 --- a/news/455.feature.rst +++ /dev/null @@ -1 +0,0 @@ -``memray attach`` now supports ``--aggregate`` to produce :ref:`aggregated capture files `. diff --git a/news/458.feature.1.rst b/news/458.feature.1.rst deleted file mode 100644 index c5a138b37e..0000000000 --- a/news/458.feature.1.rst +++ /dev/null @@ -1,2 +0,0 @@ -A new ``memray detach`` command allows you to manually deactivate tracking that -was started by a previous call to ``memray attach``. diff --git a/news/458.feature.rst b/news/458.feature.rst deleted file mode 100644 index ab8f346727..0000000000 --- a/news/458.feature.rst +++ /dev/null @@ -1,2 +0,0 @@ -``memray attach`` has been enhanced to allow tracking for only a set period of -time. diff --git a/news/473.bugfix.rst b/news/473.bugfix.rst deleted file mode 100644 index 4b24c82884..0000000000 --- a/news/473.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix a memory leak in Memray itself when many different capture files are opened by a single Memray process and native stacks are being reported. This issue primarily affected ``pytest-memray``. diff --git a/news/474.feature.rst b/news/474.feature.rst deleted file mode 100644 index 24b2788f5f..0000000000 --- a/news/474.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Python 3.12 is now supported. diff --git a/src/memray/_version.py b/src/memray/_version.py index 38cf6dbeb5..fcfdf3836e 100644 --- a/src/memray/_version.py +++ b/src/memray/_version.py @@ -1 +1 @@ -__version__ = "1.9.1" +__version__ = "1.10.0"