diff options
author | Mark Shannon <mark@hotpy.org> | 2024-11-18 14:31:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-18 14:31:26 (GMT) |
commit | b0fcc2c47a34a69c35c1a8031cd0589d3747c1af (patch) | |
tree | aa9d4bfaf49dca8d3ce47aa18a03cf2d5374a8e2 /Tools/scripts/summarize_stats.py | |
parent | a1d9c8aa800dd7c9eb634f89646be10e9cfc9c8d (diff) | |
download | cpython-b0fcc2c47a34a69c35c1a8031cd0589d3747c1af.zip cpython-b0fcc2c47a34a69c35c1a8031cd0589d3747c1af.tar.gz cpython-b0fcc2c47a34a69c35c1a8031cd0589d3747c1af.tar.bz2 |
GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-126502)
* Mark almost all reachable objects before doing collection phase
* Add stats for objects marked
* Visit new frames before each increment
* Remove lazy dict tracking
* Update docs
* Clearer calculation of work to do.
Diffstat (limited to 'Tools/scripts/summarize_stats.py')
-rw-r--r-- | Tools/scripts/summarize_stats.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py index 5793e5c..296a31d 100644 --- a/Tools/scripts/summarize_stats.py +++ b/Tools/scripts/summarize_stats.py @@ -1118,6 +1118,8 @@ def gc_stats_section() -> Section: Count(gen["collections"]), Count(gen["objects collected"]), Count(gen["object visits"]), + Count(gen["objects reachable from roots"]), + Count(gen["objects not reachable from roots"]), ) for (i, gen) in enumerate(gc_stats) ] @@ -1127,7 +1129,8 @@ def gc_stats_section() -> Section: "GC collections and effectiveness", [ Table( - ("Generation:", "Collections:", "Objects collected:", "Object visits:"), + ("Generation:", "Collections:", "Objects collected:", "Object visits:", + "Reachable from roots:", "Not reachable from roots:"), calc_gc_stats, ) ], |