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

Function calc_error_in_opcodes_table

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

Source from the content-addressed store, hash-verified

1269 )
1270
1271 def calc_error_in_opcodes_table(stats: Stats) -> Rows:
1272 error_in_opcodes = stats.get_opcode_stats("error_in_opcode")
1273 return sorted(
1274 [
1275 (opcode, Count(count))
1276 for opcode, count in error_in_opcodes.get_opcode_counts().items()
1277 ],
1278 key=itemgetter(1),
1279 reverse=True,
1280 )
1281
1282 def iter_optimization_tables(base_stats: Stats, head_stats: Stats | None = None):
1283 if not base_stats.get_optimization_stats() or (

Callers

nothing calls this directly

Calls 5

itemgetterClass · 0.90
CountClass · 0.85
get_opcode_statsMethod · 0.80
get_opcode_countsMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…