File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import json
88import os .path
99import opcode
10+ import _opcode_metadata
1011from datetime import date
1112import itertools
1213import sys
1718 DEFAULT_DIR = "/tmp/py_stats/"
1819
1920#Create list of all instruction names
20- specialized = iter (opcode ._specialized_instructions )
21+ specialized = iter (_opcode_metadata ._specialized_instructions )
2122opname = ["<0>" ]
2223for name in opcode .opname [1 :]:
2324 if name .startswith ("<" ):
@@ -244,7 +245,7 @@ def categorized_counts(opcode_stats):
244245 specialized = 0
245246 not_specialized = 0
246247 specialized_instructions = {
247- op for op in opcode ._specialized_instructions
248+ op for op in _opcode_metadata ._specialized_instructions
248249 if "__" not in op }
249250 for i , opcode_stat in enumerate (opcode_stats ):
250251 if "execution_count" not in opcode_stat :
You can’t perform that action at this time.
0 commit comments