===== BASIC METRICS -- Number of files: 90 -- Total bytecode bytes: 345012 -- Total instructions: 124606 Duplicate path/name # A tibble: 6 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 155 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 155 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 155 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 155 5 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc AbbreviatedTree 22 6 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 22 ===== BIG STRINGS path code_name type len_or_val 1 /home/andy/git/oilshell/oil/pgen2/grammar.pyc Grammar str 2600 2 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseSimpleCommand str 2301 3 /home/andy/git/oilshell/oil/osh/word_parse.pyc _ReadBracedVarSub str 2248 4 /home/andy/git/oilshell/oil/frontend/args.pyc str 1669 5 /home/andy/git/oilshell/oil/oil_lang/objects.pyc Regex str 1646 6 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/__future__.pyc str 1638 7 /home/andy/git/oilshell/oil/osh/word_parse.pyc str 1297 8 /home/andy/git/oilshell/oil/tools/osh2oil.pyc _GetRhsStyle str 1209 9 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases str 1168 10 /home/andy/git/oilshell/oil/frontend/args.pyc OilFlags str 1141 11 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordInCommand str 1139 12 /home/andy/git/oilshell/oil/pgen2/parse.pyc Parser str 1076 13 /home/andy/git/oilshell/oil/core/completion.pyc str 886 14 /home/andy/git/oilshell/oil/osh/braces.pyc _BraceDetect str 824 15 /home/andy/git/oilshell/oil/core/dev.pyc CrashDumper str 812 16 /home/andy/git/oilshell/oil/pgen2/grammar.pyc dump str 771 17 /home/andy/git/oilshell/oil/pgen2/parse.pyc __init__ str 744 18 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCompoundCommand str 735 19 /home/andy/git/oilshell/oil/oil_lang/expr_to_ast.pyc Transformer str 734 20 /home/andy/git/oilshell/oil/core/main_loop.pyc Batch str 685 -- total string bytes: 165190 ===== FRAMES Frames with many consts # A tibble: 20 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 718 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 702 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 698 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 630 5 /home/andy/git/oilshell/oil/frontend/id_kind.pyc AddKinds 362 6 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Id 336 7 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 311 8 /home/andy/git/oilshell/oil/frontend/lex.pyc 220 9 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 155 10 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 155 11 /home/andy/git/oilshell/oil/osh/state.pyc 131 12 /home/andy/git/oilshell/oil/osh/builtin.pyc 104 13 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 98 14 /home/andy/git/oilshell/oil/bin/oil.pyc 95 15 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 93 16 /home/andy/git/oilshell/oil/core/completion.pyc Matches 69 17 /home/andy/git/oilshell/oil/_devbuild/gen/grammar_nt.pyc 68 18 /home/andy/git/oilshell/oil/_devbuild/gen/types_asdl.pyc 68 19 /home/andy/git/oilshell/oil/core/completion.pyc 64 20 /home/andy/git/oilshell/oil/osh/builtin_pure.pyc 63 Frames with many ops # A tibble: 20 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 11233 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 8497 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 2548 4 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 2445 5 /home/andy/git/oilshell/oil/_devbuild/gen/id_tables.pyc 2212 6 /home/andy/git/oilshell/oil/frontend/lex.pyc 1973 7 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 1818 8 /home/andy/git/oilshell/oil/core/completion.pyc Matches 1695 9 /home/andy/git/oilshell/oil/osh/expr_eval.pyc Eval 1602 10 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 1504 11 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 1367 12 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 1244 13 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr 1190 14 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 1177 15 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 1161 16 /home/andy/git/oilshell/oil/osh/builtin.pyc __call__ 998 17 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 973 18 /home/andy/git/oilshell/oil/osh/builtin_pure.pyc __call__ 971 19 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 857 20 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 700 Frames with large stacksize path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/frontend/lex.pyc 0 0 53 5745 2 /home/andy/git/oilshell/oil/frontend/id_kind.pyc AddKinds 1 1 46 1401 3 /home/andy/git/oilshell/oil/osh/state.pyc 0 0 43 1081 4 /home/andy/git/oilshell/oil/_devbuild/gen/help_.pyc 0 0 41 133 5 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Execute 3 13 18 573 6 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 71 14 4212 7 /home/andy/git/oilshell/oil/osh/arith_parse.pyc MakeShellSpec 0 1 14 810 8 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc 0 0 14 1383 9 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCommand 1 7 13 880 10 /home/andy/git/oilshell/oil/_devbuild/gen/help_index.pyc 0 0 12 46 Frames with many locals path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 3 84 8 6915 2 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 71 14 4212 3 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 4 37 6 3366 4 /home/andy/git/oilshell/oil/core/completion.pyc Matches 2 36 11 2708 5 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 4 33 6 2503 6 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr 2 32 8 3350 7 /home/andy/git/oilshell/oil/oil_lang/expr_parse.pyc _PushOilTokens 4 32 5 1581 8 /home/andy/git/oilshell/oil/osh/history.pyc Eval 2 31 6 1199 9 /home/andy/git/oilshell/oil/osh/builtin_printf.pyc __call__ 2 29 7 1303 10 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MakeAssignPair 3 29 5 870 ===== NAMES Common types # A tibble: 4 x 2 kind n 1 name 25159 2 var 8489 3 free 12 4 cell 11 Common names # A tibble: 20 x 2 name n 1 self 1658 2 None 652 3 __name__ 545 4 append 519 5 __module__ 513 6 AssertionError 402 7 __init__ 372 8 NewRecord 368 9 fields 358 10 _AbbreviatedTree 355 11 L 354 12 out_node 354 13 field 344 14 x0 338 15 spids 336 16 tag 330 17 AbbreviatedTree 304 18 PrettyTree 300 19 children 260 20 x1 248 -- Total length of all 33671 names: 247396 -- Total length of 3892 unique names: 38312 ===== CONSTS Types of constants # A tibble: 6 x 2 type n 1 str 6265 2 code 2522 3 int 2266 4 NoneType 2072 5 tuple 960 6 float 3 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 2522 2 CO_OPTIMIZED 2010 3 CO_FUTURE_PRINT_FUNCTION 981 4 CO_NESTED 42 5 CO_GENERATOR 41 6 CO_VARARGS 25 7 CO_VARKEYWORDS 7 ===== OPS Ops Used by Frequency # A tibble: 81 x 2 op_name n 1 LOAD_FAST 20441 2 LOAD_ATTR 17608 3 LOAD_CONST 15421 4 CALL_FUNCTION 11062 5 LOAD_GLOBAL 9138 6 STORE_NAME 6197 7 STORE_FAST 6170 8 POP_TOP 4517 9 LOAD_NAME 3659 10 RETURN_VALUE 3528 11 POP_JUMP_IF_FALSE 3235 12 COMPARE_OP 2629 13 MAKE_FUNCTION 2514 14 JUMP_FORWARD 1964 15 STORE_ATTR 1346 16 STORE_MAP 1343 17 IMPORT_FROM 1262 18 JUMP_ABSOLUTE 1224 19 BUILD_TUPLE 979 20 POP_BLOCK 869 21 BUILD_LIST 844 22 RAISE_VARARGS 809 23 IMPORT_NAME 709 24 BINARY_SUBSCR 687 25 SETUP_LOOP 638 26 POP_JUMP_IF_TRUE 612 27 FOR_ITER 606 28 GET_ITER 606 29 BUILD_CLASS 512 30 LOAD_LOCALS 512 31 BINARY_ADD 295 32 UNPACK_SEQUENCE 292 33 BINARY_MODULO 235 34 END_FINALLY 231 35 JUMP_IF_TRUE_OR_POP 225 36 DUP_TOP 221 37 SETUP_EXCEPT 171 38 LOAD_DEREF 161 39 BUILD_MAP 145 40 STORE_SUBSCR 135 41 SLICE+1 109 42 BREAK_LOOP 106 43 INPLACE_ADD 99 44 BINARY_SUBTRACT 67 45 UNARY_NOT 55 46 YIELD_VALUE 53 47 SETUP_FINALLY 42 48 LIST_APPEND 27 49 ROT_TWO 26 50 SLICE+2 26 51 SLICE+3 25 52 BINARY_MULTIPLY 23 53 SETUP_WITH 18 54 WITH_CLEANUP 18 55 BINARY_OR 12 56 INPLACE_SUBTRACT 12 57 LOAD_CLOSURE 12 58 DELETE_SLICE+0 11 59 BINARY_RSHIFT 10 60 BINARY_AND 9 61 DELETE_SUBSCR 9 62 MAKE_CLOSURE 8 63 STORE_DEREF 8 64 JUMP_IF_FALSE_OR_POP 7 65 PRINT_ITEM 7 66 PRINT_NEWLINE 7 67 CALL_FUNCTION_VAR_KW 6 68 CALL_FUNCTION_VAR 5 69 DUP_TOPX 5 70 ROT_THREE 5 71 BINARY_LSHIFT 4 72 STORE_GLOBAL 4 73 BINARY_DIVIDE 3 74 BINARY_XOR 3 75 UNARY_INVERT 3 76 UNARY_NEGATIVE 3 77 BINARY_FLOOR_DIVIDE 2 78 INPLACE_MULTIPLY 2 79 BINARY_POWER 1 80 INPLACE_AND 1 81 INPLACE_RSHIFT 1 -- Total unique opcodes: 81 Unused opcodes: op_name 1 BINARY_TRUE_DIVIDE 2 BUILD_SET 3 BUILD_SLICE 4 CALL_FUNCTION_KW 5 CONTINUE_LOOP 6 DELETE_ATTR 7 DELETE_FAST 8 DELETE_GLOBAL 9 DELETE_NAME 10 DELETE_SLICE+1 11 DELETE_SLICE+2 12 DELETE_SLICE+3 13 EXEC_STMT 14 EXTENDED_ARG 15 IMPORT_STAR 16 INPLACE_DIVIDE 17 INPLACE_FLOOR_DIVIDE 18 INPLACE_LSHIFT 19 INPLACE_MODULO 20 INPLACE_OR 21 INPLACE_POWER 22 INPLACE_TRUE_DIVIDE 23 INPLACE_XOR 24 MAP_ADD 25 NOP 26 PRINT_EXPR 27 PRINT_ITEM_TO 28 PRINT_NEWLINE_TO 29 ROT_FOUR 30 SET_ADD 31 SLICE+0 32 STOP_CODE 33 STORE_SLICE+0 34 STORE_SLICE+1 35 STORE_SLICE+2 36 STORE_SLICE+3 37 UNARY_CONVERT 38 UNARY_POSITIVE Memory Operations: # A tibble: 15 x 3 kind op_name n 1 ATTR LOAD_ATTR 17608 2 ATTR STORE_ATTR 1346 3 CLOSURE LOAD_CLOSURE 12 4 CONST LOAD_CONST 15421 5 DEREF LOAD_DEREF 161 6 DEREF STORE_DEREF 8 7 FAST LOAD_FAST 20441 8 FAST STORE_FAST 6170 9 GLOBAL LOAD_GLOBAL 9138 10 GLOBAL STORE_GLOBAL 4 11 LOCALS LOAD_LOCALS 512 12 MAP STORE_MAP 1343 13 NAME STORE_NAME 6197 14 NAME LOAD_NAME 3659 15 SUBSCR STORE_SUBSCR 135 Imports: # A tibble: 2 x 2 op_name n 1 IMPORT_FROM 1262 2 IMPORT_NAME 709 Large op_arg (jump targets): path code_name op_name op_arg 1 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 6905 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 6905 3 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 6905 4 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 6905 5 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 6905 6 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 6905 7 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 6905 8 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 6905 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 6905 10 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 6905 ===== UNIQUE OPS Files with few ops: # A tibble: 20 x 2 # Groups: path [20] path n 1 /home/andy/git/oilshell/oil/asdl/__init__.pyc 2 2 /home/andy/git/oilshell/oil/bin/__init__.pyc 2 3 /home/andy/git/oilshell/oil/core/__init__.pyc 2 4 /home/andy/git/oilshell/oil/_devbuild/gen/__init__.pyc 2 5 /home/andy/git/oilshell/oil/_devbuild/__init__.pyc 2 6 /home/andy/git/oilshell/oil/frontend/__init__.pyc 2 7 /home/andy/git/oilshell/oil/mycpp/__init__.pyc 2 8 /home/andy/git/oilshell/oil/oil_lang/__init__.pyc 2 9 /home/andy/git/oilshell/oil/osh/__init__.pyc 2 10 /home/andy/git/oilshell/oil/pylib/__init__.pyc 2 11 /home/andy/git/oilshell/oil/tools/__init__.pyc 2 12 /home/andy/git/oilshell/oil/_devbuild/gen/grammar_nt.pyc 3 13 /home/andy/git/oilshell/oil/pgen2/__init__.pyc 3 14 /home/andy/git/oilshell/oil/_devbuild/gen/help_index.pyc 4 15 /home/andy/git/oilshell/oil/_devbuild/gen/help_.pyc 4 16 /home/andy/git/oilshell/oil/vendor/typing.pyc 6 17 /home/andy/git/oilshell/oil/pylib/cgi.pyc 8 18 /home/andy/git/oilshell/oil/_devbuild/gen/id_tables.pyc 10 19 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/stat.pyc 10 20 /home/andy/git/oilshell/oil/asdl/runtime.pyc 14 Files with many ops: # A tibble: 10 x 2 # Groups: path [10] path n 1 /home/andy/git/oilshell/oil/osh/state.pyc 48 2 /home/andy/git/oilshell/oil/bin/oil.pyc 49 3 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc 49 4 /home/andy/git/oilshell/oil/osh/string_ops.pyc 49 5 /home/andy/git/oilshell/oil/core/process.pyc 50 6 /home/andy/git/oilshell/oil/core/comp_ui.pyc 51 7 /home/andy/git/oilshell/oil/osh/word_eval.pyc 51 8 /home/andy/git/oilshell/oil/core/completion.pyc 56 9 /home/andy/git/oilshell/oil/osh/builtin.pyc 56 10 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc 60 Unique ops for files that just parse: # A tibble: 11 x 2 # Groups: path [11] path n 1 /home/andy/git/oilshell/oil/osh/arith_parse.pyc 19 2 /home/andy/git/oilshell/oil/frontend/lex.pyc 25 3 /home/andy/git/oilshell/oil/frontend/py_reader.pyc 26 4 /home/andy/git/oilshell/oil/frontend/reader.pyc 26 5 /home/andy/git/oilshell/oil/osh/bool_parse.pyc 29 6 /home/andy/git/oilshell/oil/pgen2/parse.pyc 32 7 /home/andy/git/oilshell/oil/frontend/lexer.pyc 35 8 /home/andy/git/oilshell/oil/frontend/parse_lib.pyc 36 9 /home/andy/git/oilshell/oil/osh/word_parse.pyc 39 10 /home/andy/git/oilshell/oil/oil_lang/expr_parse.pyc 41 11 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 44 -- Unique opcodes for parsing: 52