===== BASIC METRICS -- Number of files: 99 -- Total bytecode bytes: 360039 -- Total instructions: 129989 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 23 6 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 23 ===== 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: 169090 ===== 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 713 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_def.pyc AddKinds 360 6 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Id 335 7 /home/andy/git/oilshell/oil/_devbuild/gen/option_asdl.pyc 225 8 /home/andy/git/oilshell/oil/frontend/lexer_def.pyc 219 9 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 210 10 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 155 11 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 155 12 /home/andy/git/oilshell/oil/bin/oil.pyc 107 13 /home/andy/git/oilshell/oil/frontend/option_def.pyc 107 14 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 102 15 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 97 16 /home/andy/git/oilshell/oil/_devbuild/gen/option_asdl.pyc option_i 82 17 /home/andy/git/oilshell/oil/osh/builtin_pure.pyc 71 18 /home/andy/git/oilshell/oil/core/completion.pyc Matches 69 19 /home/andy/git/oilshell/oil/_devbuild/gen/grammar_nt.pyc 68 20 /home/andy/git/oilshell/oil/_devbuild/gen/types_asdl.pyc 68 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/osh/cmd_exec.pyc _Dispatch 2563 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 2548 5 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind.pyc 2100 6 /home/andy/git/oilshell/oil/frontend/lexer_def.pyc 1901 7 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 1818 8 /home/andy/git/oilshell/oil/core/completion.pyc Matches 1698 9 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 1557 10 /home/andy/git/oilshell/oil/osh/sh_expr_eval.pyc Eval 1420 11 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 1363 12 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 1244 13 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr 1189 14 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 1173 15 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 1149 16 /home/andy/git/oilshell/oil/osh/builtin_misc.pyc Run 1100 17 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 1028 18 /home/andy/git/oilshell/oil/osh/builtin_pure.pyc Run 1016 19 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 808 20 /home/andy/git/oilshell/oil/oil_lang/builtin_oil.pyc Run 709 Frames with large stacksize path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/frontend/lexer_def.pyc 0 0 53 5529 2 /home/andy/git/oilshell/oil/frontend/id_kind_def.pyc AddKinds 1 1 46 1395 3 /home/andy/git/oilshell/oil/frontend/option_def.pyc 0 0 43 733 4 /home/andy/git/oilshell/oil/_devbuild/gen/help_.pyc 0 0 41 133 5 /home/andy/git/oilshell/oil/frontend/builtin_def.pyc 0 0 35 292 6 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Execute 3 11 18 566 7 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCommand 1 7 16 898 8 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 4 44 15 2974 9 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 76 14 4351 10 /home/andy/git/oilshell/oil/osh/arith_parse.pyc MakeShellSpec 0 1 14 810 Frames with many locals path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 3 89 13 7253 2 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 76 14 4351 3 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 4 44 15 2974 4 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 4 37 6 3366 5 /home/andy/git/oilshell/oil/core/completion.pyc Matches 2 36 11 2719 6 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr 2 32 8 3347 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 Run 2 29 7 1312 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 26437 2 var 8797 3 free 13 4 cell 12 Common names # A tibble: 20 x 2 name n 1 self 1694 2 None 672 3 __name__ 548 4 append 529 5 __module__ 526 6 AssertionError 419 7 __init__ 386 8 NewRecord 370 9 fields 360 10 _AbbreviatedTree 357 11 L 356 12 out_node 356 13 field 346 14 x0 340 15 spids 310 16 AbbreviatedTree 305 17 PrettyTree 301 18 tag 294 19 children 258 20 name 251 -- Total length of all 35259 names: 261320 -- Total length of 4049 unique names: 39966 ===== CONSTS Types of constants # A tibble: 6 x 2 type n 1 str 6462 2 code 2598 3 int 2422 4 NoneType 2144 5 tuple 1099 6 float 3 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 2598 2 CO_OPTIMIZED 2073 3 CO_FUTURE_PRINT_FUNCTION 1066 4 CO_GENERATOR 32 5 CO_VARARGS 30 6 CO_NESTED 28 7 CO_VARKEYWORDS 11 ===== OPS Ops Used by Frequency # A tibble: 82 x 2 op_name n 1 LOAD_FAST 21140 2 LOAD_ATTR 17797 3 LOAD_CONST 16372 4 CALL_FUNCTION 11739 5 LOAD_GLOBAL 9687 6 STORE_NAME 6714 7 STORE_FAST 6573 8 POP_TOP 4742 9 RETURN_VALUE 3620 10 LOAD_NAME 3587 11 POP_JUMP_IF_FALSE 3382 12 MAKE_FUNCTION 2589 13 COMPARE_OP 2545 14 JUMP_FORWARD 2101 15 IMPORT_FROM 1555 16 STORE_MAP 1350 17 STORE_ATTR 1345 18 JUMP_ABSOLUTE 1231 19 BUILD_TUPLE 981 20 POP_BLOCK 924 21 BUILD_LIST 870 22 IMPORT_NAME 867 23 RAISE_VARARGS 841 24 BINARY_SUBSCR 704 25 SETUP_LOOP 648 26 POP_JUMP_IF_TRUE 641 27 FOR_ITER 625 28 GET_ITER 625 29 BUILD_CLASS 525 30 LOAD_LOCALS 525 31 UNPACK_SEQUENCE 290 32 BINARY_ADD 278 33 END_FINALLY 276 34 BINARY_MODULO 237 35 DUP_TOP 221 36 JUMP_IF_TRUE_OR_POP 220 37 SETUP_EXCEPT 168 38 LOAD_DEREF 163 39 STORE_SUBSCR 143 40 BUILD_MAP 140 41 SLICE+1 110 42 BREAK_LOOP 106 43 INPLACE_ADD 97 44 BINARY_SUBTRACT 68 45 SETUP_WITH 66 46 WITH_CLEANUP 66 47 UNARY_NOT 63 48 LIST_APPEND 44 49 YIELD_VALUE 44 50 SETUP_FINALLY 42 51 SLICE+2 28 52 ROT_TWO 27 53 SLICE+3 25 54 BINARY_MULTIPLY 24 55 BINARY_AND 23 56 BINARY_OR 13 57 INPLACE_SUBTRACT 13 58 LOAD_CLOSURE 13 59 BINARY_LSHIFT 11 60 BINARY_RSHIFT 11 61 DELETE_SLICE+0 11 62 CALL_FUNCTION_VAR_KW 10 63 DELETE_SUBSCR 9 64 MAKE_CLOSURE 9 65 STORE_DEREF 9 66 JUMP_IF_FALSE_OR_POP 8 67 BINARY_DIVIDE 7 68 INPLACE_OR 6 69 PRINT_ITEM 6 70 PRINT_NEWLINE 6 71 CALL_FUNCTION_VAR 5 72 DUP_TOPX 4 73 ROT_THREE 4 74 STORE_GLOBAL 4 75 BINARY_XOR 3 76 UNARY_INVERT 3 77 UNARY_NEGATIVE 3 78 BINARY_FLOOR_DIVIDE 2 79 INPLACE_MULTIPLY 2 80 BINARY_POWER 1 81 INPLACE_AND 1 82 INPLACE_RSHIFT 1 -- Total unique opcodes: 82 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_POWER 21 INPLACE_TRUE_DIVIDE 22 INPLACE_XOR 23 MAP_ADD 24 NOP 25 PRINT_EXPR 26 PRINT_ITEM_TO 27 PRINT_NEWLINE_TO 28 ROT_FOUR 29 SET_ADD 30 SLICE+0 31 STOP_CODE 32 STORE_SLICE+0 33 STORE_SLICE+1 34 STORE_SLICE+2 35 STORE_SLICE+3 36 UNARY_CONVERT 37 UNARY_POSITIVE Memory Operations: # A tibble: 15 x 3 kind op_name n 1 ATTR LOAD_ATTR 17797 2 ATTR STORE_ATTR 1345 3 CLOSURE LOAD_CLOSURE 13 4 CONST LOAD_CONST 16372 5 DEREF LOAD_DEREF 163 6 DEREF STORE_DEREF 9 7 FAST LOAD_FAST 21140 8 FAST STORE_FAST 6573 9 GLOBAL LOAD_GLOBAL 9687 10 GLOBAL STORE_GLOBAL 4 11 LOCALS LOAD_LOCALS 525 12 MAP STORE_MAP 1350 13 NAME STORE_NAME 6714 14 NAME LOAD_NAME 3587 15 SUBSCR STORE_SUBSCR 143 Imports: # A tibble: 2 x 2 op_name n 1 IMPORT_FROM 1555 2 IMPORT_NAME 867 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 7237 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 7237 3 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 7237 4 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 7237 5 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 7237 6 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 7237 7 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 7237 8 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 7237 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 7237 10 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 7237 ===== 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_kind.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/string_ops.pyc 49 2 /home/andy/git/oilshell/oil/osh/word_eval.pyc 50 3 /home/andy/git/oilshell/oil/bin/oil.pyc 51 4 /home/andy/git/oilshell/oil/core/comp_ui.pyc 51 5 /home/andy/git/oilshell/oil/core/process.pyc 52 6 /home/andy/git/oilshell/oil/core/state.pyc 52 7 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc 52 8 /home/andy/git/oilshell/oil/osh/builtin_misc.pyc 55 9 /home/andy/git/oilshell/oil/core/completion.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/lexer_def.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