MCPcopy Index your code
hub / github.com/python/cpython / calc_gc_stats

Function calc_gc_stats

Tools/scripts/summarize_stats.py:1160–1173  ·  view source on GitHub ↗
(stats: Stats)

Source from the content-addressed store, hash-verified

1158
1159def gc_stats_section() -> Section:
1160 def calc_gc_stats(stats: Stats) -> Rows:
1161 gc_stats = stats.get_gc_stats()
1162
1163 return [
1164 (
1165 Count(i),
1166 Count(gen["collections"]),
1167 Count(gen["objects collected"]),
1168 Count(gen["object visits"]),
1169 Count(gen["objects reachable from roots"]),
1170 Count(gen["objects not reachable from roots"]),
1171 )
1172 for (i, gen) in enumerate(gc_stats)
1173 ]
1174
1175 return Section(
1176 "GC stats",

Callers

nothing calls this directly

Calls 3

CountClass · 0.85
enumerateFunction · 0.85
get_gc_statsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…