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

Function calc_jit_memory_table

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

Source from the content-addressed store, hash-verified

1210 ]
1211
1212 def calc_jit_memory_table(stats: Stats) -> Rows:
1213 jit_memory_stats = stats.get_jit_memory_stats()
1214
1215 return [
1216 (
1217 label,
1218 Count(value),
1219 Ratio(value, den, percentage=label != "Total memory size"),
1220 )
1221 for label, (value, den) in jit_memory_stats.items()
1222 ]
1223
1224 def calc_histogram_table(key: str, den: str | None = None) -> RowCalculator:
1225 def calc(stats: Stats) -> Rows:

Callers

nothing calls this directly

Calls 4

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