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

Function calc_optimizer_table

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

Source from the content-addressed store, hash-verified

1202 ]
1203
1204 def calc_optimizer_table(stats: Stats) -> Rows:
1205 optimizer_stats = stats.get_optimizer_stats()
1206
1207 return [
1208 (label, Count(value), Ratio(value, den))
1209 for label, (value, den) in optimizer_stats.items()
1210 ]
1211
1212 def calc_jit_memory_table(stats: Stats) -> Rows:
1213 jit_memory_stats = stats.get_jit_memory_stats()

Callers

nothing calls this directly

Calls 4

CountClass · 0.85
get_optimizer_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…