===== BASIC METRICS -- Number of files: 99 -- Total bytecode bytes: 359182 -- Total instructions: 129664 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: 168372 ===== 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 207 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/frontend/option_def.pyc 109 13 /home/andy/git/oilshell/oil/bin/oil.pyc 102 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 1501 10 /home/andy/git/oilshell/oil/osh/sh_expr_eval.pyc Eval 1414 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 1030 18 /home/andy/git/oilshell/oil/osh/builtin_pure.pyc Run 1016 19 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 802 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 744 4 /home/andy/git/oilshell/oil/_devbuild/gen/help_.pyc 0 0 42 136 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 904 8 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 4 44 15 2980 9 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 72 14 4191 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 72 14 4191 3 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 4 44 15 2980 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 26355 2 var 8747 3 free 12 4 cell 11 Common names # A tibble: 20 x 2 name n 1 self 1692 2 None 669 3 __name__ 546 4 append 529 5 __module__ 525 6 AssertionError 420 7 __init__ 385 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 295 19 children 258 20 hnode 249 -- Total length of all 35125 names: 260541 -- Total length of 4028 unique names: 39802 ===== CONSTS Types of constants # A tibble: 6 x 2 type n 1 str 6444 2 code 2580 3 int 2415 4 NoneType 2133 5 tuple 1088 6 float 3 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 2580 2 CO_OPTIMIZED 2056 3 CO_FUTURE_PRINT_FUNCTION 1047 4 CO_GENERATOR 29 5 CO_VARARGS 28 6 CO_NESTED 27 7 CO_VARKEYWORDS 10 ===== OPS Ops Used by Frequency # A tibble: 82 x 2 op_name n 1 LOAD_FAST 21104 2 LOAD_ATTR 17794 3 LOAD_CONST 16289 4 CALL_FUNCTION 11724 5 LOAD_GLOBAL 9676 6 STORE_NAME 6683 7 STORE_FAST 6562 8 POP_TOP 4712 9 RETURN_VALUE 3602 10 LOAD_NAME 3563 11 POP_JUMP_IF_FALSE 3379 12 MAKE_FUNCTION 2572 13 COMPARE_OP 2544 14 JUMP_FORWARD 2102 15 IMPORT_FROM 1540 16 STORE_ATTR 1349 17 STORE_MAP 1347 18 JUMP_ABSOLUTE 1224 19 BUILD_TUPLE 968 20 POP_BLOCK 924 21 BUILD_LIST 872 22 IMPORT_NAME 856 23 RAISE_VARARGS 852 24 BINARY_SUBSCR 705 25 SETUP_LOOP 648 26 POP_JUMP_IF_TRUE 641 27 FOR_ITER 624 28 GET_ITER 624 29 BUILD_CLASS 524 30 LOAD_LOCALS 524 31 UNPACK_SEQUENCE 290 32 BINARY_ADD 278 33 END_FINALLY 276 34 BINARY_MODULO 237 35 DUP_TOP 220 36 JUMP_IF_TRUE_OR_POP 220 37 SETUP_EXCEPT 168 38 LOAD_DEREF 162 39 STORE_SUBSCR 143 40 BUILD_MAP 141 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 60 48 LIST_APPEND 46 49 SETUP_FINALLY 42 50 YIELD_VALUE 41 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 12 58 LOAD_CLOSURE 12 59 BINARY_LSHIFT 11 60 BINARY_RSHIFT 11 61 DELETE_SLICE+0 11 62 CALL_FUNCTION_VAR_KW 9 63 DELETE_SUBSCR 9 64 JUMP_IF_FALSE_OR_POP 8 65 MAKE_CLOSURE 8 66 STORE_DEREF 8 67 BINARY_DIVIDE 7 68 PRINT_ITEM 7 69 PRINT_NEWLINE 7 70 INPLACE_OR 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 17794 2 ATTR STORE_ATTR 1349 3 CLOSURE LOAD_CLOSURE 12 4 CONST LOAD_CONST 16289 5 DEREF LOAD_DEREF 162 6 DEREF STORE_DEREF 8 7 FAST LOAD_FAST 21104 8 FAST STORE_FAST 6562 9 GLOBAL LOAD_GLOBAL 9676 10 GLOBAL STORE_GLOBAL 4 11 LOCALS LOAD_LOCALS 524 12 MAP STORE_MAP 1347 13 NAME STORE_NAME 6683 14 NAME LOAD_NAME 3563 15 SUBSCR STORE_SUBSCR 143 Imports: # A tibble: 2 x 2 op_name n 1 IMPORT_FROM 1540 2 IMPORT_NAME 856 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/sh_expr_eval.pyc 49 2 /home/andy/git/oilshell/oil/osh/string_ops.pyc 49 3 /home/andy/git/oilshell/oil/osh/word_eval.pyc 50 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