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

Method get_opcode_counts

Tools/scripts/summarize_stats.py:357–363  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

355 }
356
357 def get_opcode_counts(self) -> dict[str, int]:
358 counts = {}
359 for opcode, entry in self._data.items():
360 count = entry.get("count", 0)
361 if count:
362 counts[opcode] = count
363 return counts
364
365
366class Stats:

Callers 2

Calls 2

itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected