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

Function calc_object_stats_table

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

Source from the content-addressed store, hash-verified

1128
1129def object_stats_section() -> Section:
1130 def calc_object_stats_table(stats: Stats) -> Rows:
1131 object_stats = stats.get_object_stats()
1132 return [
1133 (label, Count(value), Ratio(value, den))
1134 for label, (value, den) in object_stats.items()
1135 ]
1136
1137 return Section(
1138 "Object stats",

Callers

nothing calls this directly

Calls 4

CountClass · 0.85
get_object_statsMethod · 0.80
RatioClass · 0.70
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…