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

Function execution_count_section

Tools/scripts/summarize_stats.py:774–790  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

772
773
774def execution_count_section() -> Section:
775 return Section(
776 "Execution counts",
777 "Execution counts for Tier 1 instructions.",
778 [
779 Table(
780 ("Name", "Count:", "Self:", "Cumulative:", "Miss ratio:"),
781 calc_execution_count_table("opcode"),
782 join_mode=JoinMode.CHANGE_ONE_COLUMN,
783 )
784 ],
785 doc="""
786 The "miss ratio" column shows the percentage of times the instruction
787 executed that it deoptimized. When this happens, the base unspecialized
788 instruction is not counted.
789 """,
790 )
791
792
793def pair_count_section(prefix: str, title=None) -> Section:

Callers 1

summarize_stats.pyFile · 0.85

Calls 3

SectionClass · 0.70
TableClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…