===== BASIC METRICS -- Number of files: 108 -- Total bytecode bytes: 402638 -- Total instructions: 145130 Duplicate path/name # A tibble: 6 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 164 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 164 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 164 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 164 5 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc AbbreviatedTree 30 6 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 30 ===== 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/qsn_/qsn.pyc str 2295 4 /home/andy/git/oilshell/oil/osh/word_parse.pyc _ReadBracedVarSub str 2248 5 /home/andy/git/oilshell/oil/frontend/args.pyc str 1726 6 /home/andy/git/oilshell/oil/oil_lang/objects.pyc Regex str 1646 7 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/__future__.pyc str 1638 8 /home/andy/git/oilshell/oil/osh/word_parse.pyc str 1297 9 /home/andy/git/oilshell/oil/tools/osh2oil.pyc _GetRhsStyle str 1209 10 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases str 1168 11 /home/andy/git/oilshell/oil/frontend/flag_spec.pyc _OilFlags str 1141 12 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordInCommand str 1139 13 /home/andy/git/oilshell/oil/pgen2/parse.pyc Parser str 1076 14 /home/andy/git/oilshell/oil/core/completion.pyc str 886 15 /home/andy/git/oilshell/oil/osh/braces.pyc _BraceDetect str 824 16 /home/andy/git/oilshell/oil/core/dev.pyc CrashDumper str 820 17 /home/andy/git/oilshell/oil/pgen2/grammar.pyc dump str 771 18 /home/andy/git/oilshell/oil/pgen2/parse.pyc __init__ str 744 19 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCompoundCommand str 735 20 /home/andy/git/oilshell/oil/oil_lang/expr_to_ast.pyc Transformer str 734 -- total string bytes: 181440 ===== 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 756 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 752 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 740 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 665 5 /home/andy/git/oilshell/oil/frontend/id_kind_def.pyc AddKinds 378 6 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Id 356 7 /home/andy/git/oilshell/oil/_devbuild/gen/option_asdl.pyc 243 8 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 233 9 /home/andy/git/oilshell/oil/frontend/lexer_def.pyc 231 10 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 164 11 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 164 12 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 120 13 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 115 14 /home/andy/git/oilshell/oil/frontend/option_def.pyc 110 15 /home/andy/git/oilshell/oil/_devbuild/gen/option_asdl.pyc option_i 89 16 /home/andy/git/oilshell/oil/_devbuild/gen/arg_types.pyc __init__ 88 17 /home/andy/git/oilshell/oil/_devbuild/gen/grammar_nt.pyc 87 18 /home/andy/git/oilshell/oil/core/state.pyc 82 19 /home/andy/git/oilshell/oil/core/completion.pyc 79 20 /home/andy/git/oilshell/oil/frontend/flag_def.pyc 79 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 11648 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 8798 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 2749 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 2721 5 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch 2524 6 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind.pyc 2214 7 /home/andy/git/oilshell/oil/frontend/lexer_def.pyc 2110 8 /home/andy/git/oilshell/oil/core/completion.pyc Matches 1714 9 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 1476 10 /home/andy/git/oilshell/oil/core/shell.pyc Main 1423 11 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 1286 12 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 1244 13 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 1215 14 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr 1186 15 /home/andy/git/oilshell/oil/osh/builtin_printf.pyc Run 942 16 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 909 17 /home/andy/git/oilshell/oil/core/pure.pyc Main 900 18 /home/andy/git/oilshell/oil/osh/sh_expr_eval.pyc Eval 878 19 /home/andy/git/oilshell/oil/_devbuild/gen/arg_types.pyc __init__ 830 20 /home/andy/git/oilshell/oil/osh/builtin_misc.pyc Run 821 Frames with large stacksize path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/_devbuild/gen/help_.pyc 0 0 62 196 2 /home/andy/git/oilshell/oil/frontend/lexer_def.pyc 0 0 53 6108 3 /home/andy/git/oilshell/oil/frontend/id_kind_def.pyc AddKinds 1 1 46 1471 4 /home/andy/git/oilshell/oil/frontend/option_def.pyc 0 0 42 904 5 /home/andy/git/oilshell/oil/frontend/builtin_def.pyc 0 0 38 301 6 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Execute 2 10 19 560 7 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCommand 1 11 17 1180 8 /home/andy/git/oilshell/oil/osh/arith_parse.pyc MakeShellSpec 0 1 14 810 9 /home/andy/git/oilshell/oil/core/state.pyc SetVar 5 23 13 1541 10 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch 2 86 13 7138 Frames with many locals path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/core/shell.pyc Main 6 86 12 4003 2 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch 2 86 13 7138 3 /home/andy/git/oilshell/oil/core/pure.pyc Main 6 66 9 2544 4 /home/andy/git/oilshell/oil/osh/builtin_printf.pyc Run 2 49 10 2652 5 /home/andy/git/oilshell/oil/osh/builtin_assign.pyc _PrintVariables 5 42 10 2057 6 /home/andy/git/oilshell/oil/core/completion.pyc Matches 2 37 11 2740 7 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 4 37 6 3366 8 /home/andy/git/oilshell/oil/oil_lang/expr_parse.pyc _PushOilTokens 4 33 5 1614 9 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr 2 32 8 3340 10 /home/andy/git/oilshell/oil/osh/history.pyc Eval 2 31 6 1199 ===== NAMES Common types # A tibble: 4 x 2 kind n 1 name 29755 2 var 9887 3 free 13 4 cell 12 Common names # A tibble: 20 x 2 name n 1 self 1884 2 None 809 3 __name__ 617 4 __module__ 595 5 append 581 6 __init__ 444 7 AssertionError 422 8 NewRecord 402 9 fields 400 10 L 390 11 _AbbreviatedTree 389 12 out_node 388 13 field 374 14 x0 368 15 AbbreviatedTree 331 16 PrettyTree 328 17 spids 319 18 tag 302 19 children 288 20 name 284 -- Total length of all 39667 names: 292448 -- Total length of 4433 unique names: 43397 ===== CONSTS Types of constants # A tibble: 6 x 2 type n 1 str 7045 2 code 2912 3 int 2705 4 NoneType 2384 5 tuple 1339 6 float 6 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 2912 2 CO_OPTIMIZED 2318 3 CO_FUTURE_PRINT_FUNCTION 1234 4 CO_VARARGS 28 5 CO_GENERATOR 26 6 CO_NESTED 25 7 CO_VARKEYWORDS 11 ===== OPS Ops Used by Frequency # A tibble: 81 x 2 op_name n 1 LOAD_FAST 23654 2 LOAD_ATTR 19335 3 LOAD_CONST 18570 4 CALL_FUNCTION 13056 5 LOAD_GLOBAL 10886 6 STORE_NAME 7653 7 STORE_FAST 7359 8 POP_TOP 5224 9 POP_JUMP_IF_FALSE 4073 10 RETURN_VALUE 4005 11 LOAD_NAME 3912 12 COMPARE_OP 3066 13 MAKE_FUNCTION 2903 14 JUMP_FORWARD 2605 15 IMPORT_FROM 1921 16 STORE_ATTR 1503 17 STORE_MAP 1377 18 JUMP_ABSOLUTE 1333 19 IMPORT_NAME 1098 20 BUILD_TUPLE 1069 21 POP_BLOCK 965 22 BUILD_LIST 943 23 RAISE_VARARGS 805 24 BINARY_SUBSCR 794 25 SETUP_LOOP 683 26 FOR_ITER 657 27 GET_ITER 657 28 POP_JUMP_IF_TRUE 607 29 BUILD_CLASS 594 30 LOAD_LOCALS 594 31 UNPACK_SEQUENCE 319 32 BINARY_ADD 304 33 END_FINALLY 282 34 BINARY_MODULO 271 35 STORE_SUBSCR 221 36 DUP_TOP 213 37 LOAD_DEREF 166 38 SETUP_EXCEPT 161 39 BUILD_MAP 157 40 BREAK_LOOP 116 41 SETUP_WITH 98 42 SLICE+1 98 43 WITH_CLEANUP 98 44 INPLACE_ADD 96 45 UNARY_NOT 78 46 BINARY_SUBTRACT 71 47 LIST_APPEND 53 48 BINARY_AND 41 49 YIELD_VALUE 38 50 SLICE+2 31 51 SLICE+3 30 52 BINARY_MULTIPLY 25 53 ROT_TWO 24 54 JUMP_IF_TRUE_OR_POP 23 55 SETUP_FINALLY 23 56 BINARY_LSHIFT 17 57 BINARY_RSHIFT 15 58 INPLACE_OR 15 59 BINARY_OR 14 60 LOAD_CLOSURE 13 61 INPLACE_SUBTRACT 12 62 JUMP_IF_FALSE_OR_POP 12 63 CALL_FUNCTION_VAR_KW 10 64 DELETE_SLICE+0 10 65 DELETE_SUBSCR 10 66 MAKE_CLOSURE 9 67 STORE_DEREF 9 68 BINARY_DIVIDE 7 69 PRINT_ITEM 6 70 PRINT_NEWLINE 6 71 CALL_FUNCTION_VAR 5 72 UNARY_NEGATIVE 5 73 STORE_GLOBAL 4 74 BINARY_XOR 3 75 UNARY_INVERT 3 76 BINARY_FLOOR_DIVIDE 2 77 BINARY_POWER 1 78 DUP_TOPX 1 79 INPLACE_MULTIPLY 1 80 INPLACE_RSHIFT 1 81 ROT_THREE 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_AND 17 INPLACE_DIVIDE 18 INPLACE_FLOOR_DIVIDE 19 INPLACE_LSHIFT 20 INPLACE_MODULO 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 19335 2 ATTR STORE_ATTR 1503 3 CLOSURE LOAD_CLOSURE 13 4 CONST LOAD_CONST 18570 5 DEREF LOAD_DEREF 166 6 DEREF STORE_DEREF 9 7 FAST LOAD_FAST 23654 8 FAST STORE_FAST 7359 9 GLOBAL LOAD_GLOBAL 10886 10 GLOBAL STORE_GLOBAL 4 11 LOCALS LOAD_LOCALS 594 12 MAP STORE_MAP 1377 13 NAME STORE_NAME 7653 14 NAME LOAD_NAME 3912 15 SUBSCR STORE_SUBSCR 221 Imports: # A tibble: 2 x 2 op_name n 1 IMPORT_FROM 1921 2 IMPORT_NAME 1098 Large op_arg (jump targets): path code_name op_name op_arg 1 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch JUMP_ABSOLUTE 7122 2 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch JUMP_ABSOLUTE 7122 3 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch JUMP_ABSOLUTE 7122 4 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch JUMP_ABSOLUTE 7122 5 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch POP_JUMP_IF_FALSE 7122 6 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch JUMP_ABSOLUTE 7122 7 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch JUMP_ABSOLUTE 7122 8 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch POP_JUMP_IF_FALSE 7122 9 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch JUMP_ABSOLUTE 7122 10 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc _Dispatch JUMP_ABSOLUTE 7122 ===== 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/qsn_/__init__.pyc 2 12 /home/andy/git/oilshell/oil/tools/__init__.pyc 2 13 /home/andy/git/oilshell/oil/_devbuild/gen/grammar_nt.pyc 3 14 /home/andy/git/oilshell/oil/pgen2/__init__.pyc 3 15 /home/andy/git/oilshell/oil/_devbuild/gen/help_.pyc 4 16 /home/andy/git/oilshell/oil/core/ansi.pyc 6 17 /home/andy/git/oilshell/oil/vendor/typing.pyc 6 18 /home/andy/git/oilshell/oil/pylib/cgi.pyc 8 19 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind.pyc 10 20 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/stat.pyc 10 Files with many ops: # A tibble: 10 x 2 # Groups: path [10] path n 1 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 45 2 /home/andy/git/oilshell/oil/osh/string_ops.pyc 49 3 /home/andy/git/oilshell/oil/osh/sh_expr_eval.pyc 50 4 /home/andy/git/oilshell/oil/osh/word_eval.pyc 51 5 /home/andy/git/oilshell/oil/core/process.pyc 53 6 /home/andy/git/oilshell/oil/core/state.pyc 53 7 /home/andy/git/oilshell/oil/core/comp_ui.pyc 54 8 /home/andy/git/oilshell/oil/osh/cmd_eval.pyc 54 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 24 3 /home/andy/git/oilshell/oil/frontend/py_reader.pyc 26 4 /home/andy/git/oilshell/oil/frontend/reader.pyc 27 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 45 -- Unique opcodes for parsing: 54