]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Include freelists in allocation total. (GH-93799)
authorMark Shannon <mark@hotpy.org>
Tue, 14 Jun 2022 13:44:26 +0000 (14:44 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Jun 2022 13:44:26 +0000 (14:44 +0100)
Tools/scripts/summarize_stats.py

index 04d18790f0d792a55ad8565b4b6112773b8025bf..a856bbb30975139176e02671af34593b4cda7a87 100644 (file)
@@ -278,7 +278,7 @@ def emit_call_stats(stats):
 def emit_object_stats(stats):
     with Section("Object stats", summary="allocations, frees and dict materializatons"):
         total_materializations = stats.get("Object new values")
-        total_allocations = stats.get("Object allocations")
+        total_allocations = stats.get("Object allocations") + stats.get("Object allocations from freelist")
         total_increfs = stats.get("Object interpreter increfs") + stats.get("Object increfs")
         total_decrefs = stats.get("Object interpreter decrefs") + stats.get("Object decrefs")
         rows = []