diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py index 9c881897c2de1d..833e5423e04304 100644 --- a/Tools/scripts/summarize_stats.py +++ b/Tools/scripts/summarize_stats.py @@ -7,6 +7,7 @@ import json import os.path import opcode +import _opcode_metadata from datetime import date import itertools import sys @@ -17,7 +18,7 @@ DEFAULT_DIR = "/tmp/py_stats/" #Create list of all instruction names -specialized = iter(opcode._specialized_instructions) +specialized = iter(_opcode_metadata._specialized_instructions) opname = ["<0>"] for name in opcode.opname[1:]: if name.startswith("<"): @@ -244,7 +245,7 @@ def categorized_counts(opcode_stats): specialized = 0 not_specialized = 0 specialized_instructions = { - op for op in opcode._specialized_instructions + op for op in _opcode_metadata._specialized_instructions if "__" not in op} for i, opcode_stat in enumerate(opcode_stats): if "execution_count" not in opcode_stat: