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

Method get_specialization_total

Tools/scripts/summarize_stats.py:247–249  ·  view source on GitHub ↗
(self, opcode: str)

Source from the content-addressed store, hash-verified

245 return self._data[opcode]
246
247 def get_specialization_total(self, opcode: str) -> int:
248 family_stats = self._get_stats_for_opcode(opcode)
249 return sum(family_stats.get(kind, 0) for kind in TOTAL)
250
251 def get_specialization_counts(self, opcode: str) -> dict[str, int]:
252 family_stats = self._get_stats_for_opcode(opcode)

Callers 2

calcFunction · 0.80

Calls 2

_get_stats_for_opcodeMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected