summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-06-21 14:40:54 (GMT)
committerGitHub <noreply@github.com>2022-06-21 14:40:54 (GMT)
commit6f8875eba38b08c802905635759b5f905e3a415c (patch)
tree6ee112e6f2e61ccbde70f9bf4bc5f103c0e12508 /Misc
parentc7a79bb036b42f96b7379b95efa643ee27df2168 (diff)
downloadcpython-6f8875eba38b08c802905635759b5f905e3a415c.zip
cpython-6f8875eba38b08c802905635759b5f905e3a415c.tar.gz
cpython-6f8875eba38b08c802905635759b5f905e3a415c.tar.bz2
GH-93841: Allow stats to be turned on and off, cleared and dumped at runtime. (GH-93843)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-06-15-11-16-13.gh-issue-93841.06zqX3.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-06-15-11-16-13.gh-issue-93841.06zqX3.rst b/Misc/NEWS.d/next/Core and Builtins/2022-06-15-11-16-13.gh-issue-93841.06zqX3.rst
new file mode 100644
index 0000000..179d380
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2022-06-15-11-16-13.gh-issue-93841.06zqX3.rst
@@ -0,0 +1,3 @@
+When built with ``-enable-pystats``, ``sys._stats_on()``,
+``sys._stats_off()``, ``sys._stats_clear()`` and ``sys._stats_dump()``
+functions have been added to enable gathering stats for parts of programs.