===== BASIC METRICS -- Number of files: 69 -- Total bytecode bytes: 250226 -- Total instructions: 90374 Duplicate path/name # A tibble: 6 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 116 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 116 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 116 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 116 5 /home/andy/git/oilshell/oil/osh/builtin.pyc __init__ 25 6 /home/andy/git/oilshell/oil/osh/builtin.pyc __call__ 24 ===== BIG STRINGS path code_name type len_or_val 1 /home/andy/git/oilshell/oil/frontend/lex.pyc str 3101 2 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseSimpleCommand str 2301 3 /home/andy/git/oilshell/oil/osh/word_parse.pyc _ReadBracedBracedVarSub str 2248 4 /home/andy/git/oilshell/oil/frontend/args.pyc str 1669 5 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/__future__.pyc str 1638 6 /home/andy/git/oilshell/oil/osh/word_parse.pyc str 1289 7 /home/andy/git/oilshell/oil/tools/osh2oil.pyc _GetRhsStyle str 1209 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases str 1172 9 /home/andy/git/oilshell/oil/frontend/args.pyc OilFlags str 1141 10 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordInCommand str 1139 11 /home/andy/git/oilshell/oil/core/completion.pyc str 886 12 /home/andy/git/oilshell/oil/osh/braces.pyc _BraceDetect str 828 13 /home/andy/git/oilshell/oil/core/dev.pyc CrashDumper str 812 14 /home/andy/git/oilshell/oil/core/process.pyc Waiter str 743 15 /home/andy/git/oilshell/oil/osh/builtin.pyc Wait str 655 16 /home/andy/git/oilshell/oil/core/main_loop.pyc Batch str 635 17 /home/andy/git/oilshell/oil/osh/builtin.pyc str 634 18 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _ParseCommandLine str 629 19 /home/andy/git/oilshell/oil/osh/split.pyc str 612 20 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoAssignment str 606 -- total string bytes: 126264 ===== 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 Id 614 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 554 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 451 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 361 5 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 338 6 /home/andy/git/oilshell/oil/_devbuild/gen/osh_help.pyc 240 7 /home/andy/git/oilshell/oil/osh/builtin.pyc __call__ 170 8 /home/andy/git/oilshell/oil/frontend/lex.pyc 162 9 /home/andy/git/oilshell/oil/osh/builtin.pyc 155 10 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 116 11 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 116 12 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 107 13 /home/andy/git/oilshell/oil/bin/oil.pyc 88 14 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc builtin_e 84 15 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 74 16 /home/andy/git/oilshell/oil/osh/state.pyc 70 17 /home/andy/git/oilshell/oil/core/completion.pyc Matches 69 18 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Kind 64 19 /home/andy/git/oilshell/oil/core/completion.pyc 63 20 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 61 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 8919 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 5520 3 /home/andy/git/oilshell/oil/osh/builtin.pyc __call__ 2572 4 /home/andy/git/oilshell/oil/core/completion.pyc Matches 1699 5 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Id 1539 6 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 1527 7 /home/andy/git/oilshell/oil/frontend/lex.pyc 1496 8 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 1494 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 1418 10 /home/andy/git/oilshell/oil/osh/expr_eval.pyc Eval 1386 11 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 1285 12 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 1241 13 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 1047 14 /home/andy/git/oilshell/oil/osh/builtin.pyc 836 15 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 827 16 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 732 17 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 618 18 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordPart 566 19 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 528 20 /home/andy/git/oilshell/oil/bin/oil.pyc 488 Frames with large stacksize path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 0 0 308 2182 2 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 1 1 46 1282 3 /home/andy/git/oilshell/oil/frontend/lex.pyc 0 0 33 4342 4 /home/andy/git/oilshell/oil/osh/state.pyc 0 0 19 688 5 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 65 14 3611 6 /home/andy/git/oilshell/oil/osh/arith_parse.pyc MakeShellSpec 0 1 14 835 7 /home/andy/git/oilshell/oil/core/completion.pyc Matches 2 36 11 2720 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCommand 1 2 11 438 9 /home/andy/git/oilshell/oil/osh/word_parse.pyc _ReadWord 2 3 11 564 10 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Execute 3 8 10 394 Frames with many locals path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 65 14 3611 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 3 54 7 3980 3 /home/andy/git/oilshell/oil/core/completion.pyc Matches 2 36 11 2720 4 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 4 36 6 3357 5 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 4 33 6 2403 6 /home/andy/git/oilshell/oil/osh/history.pyc Eval 2 31 6 1199 7 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MakeAssignPair 3 27 4 856 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases 2 27 6 738 9 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseSimpleCommand 1 20 6 820 10 /home/andy/git/oilshell/oil/osh/builtin_bracket.pyc __call__ 2 19 5 658 ===== NAMES Common types # A tibble: 4 x 2 kind n 1 name 17872 2 var 6362 3 cell 4 4 free 4 Common names # A tibble: 20 x 2 name n 1 self 1230 2 None 447 3 __name__ 427 4 spids 419 5 __module__ 401 6 append 385 7 AssertionError 293 8 __init__ 292 9 PrettyNode 276 10 fields 266 11 _AbbreviatedTree 263 12 L 262 13 out_node 262 14 x0 242 15 AbbreviatedTree 224 16 PrettyTree 220 17 children 196 18 x1 195 19 tag 187 20 PrettyLeaf 186 -- Total length of all 24242 names: 185985 -- Total length of 3070 unique names: 30598 ===== CONSTS Types of constants # A tibble: 6 x 2 type n 1 str 4983 2 code 1897 3 NoneType 1545 4 int 1351 5 tuple 645 6 float 3 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 1897 2 CO_OPTIMIZED 1496 3 CO_FUTURE_PRINT_FUNCTION 753 4 CO_GENERATOR 32 5 CO_NESTED 31 6 CO_VARARGS 19 7 CO_VARKEYWORDS 5 ===== OPS Ops Used by Frequency # A tibble: 79 x 2 op_name n 1 LOAD_FAST 15188 2 LOAD_ATTR 12188 3 LOAD_CONST 11163 4 CALL_FUNCTION 7987 5 LOAD_GLOBAL 6100 6 STORE_FAST 4456 7 STORE_NAME 4415 8 POP_TOP 3567 9 LOAD_NAME 2864 10 RETURN_VALUE 2576 11 POP_JUMP_IF_FALSE 2341 12 MAKE_FUNCTION 1893 13 COMPARE_OP 1803 14 JUMP_FORWARD 1510 15 BUILD_TUPLE 1403 16 STORE_ATTR 1060 17 JUMP_ABSOLUTE 1005 18 POP_BLOCK 743 19 IMPORT_FROM 701 20 RAISE_VARARGS 583 21 SETUP_LOOP 551 22 FOR_ITER 519 23 GET_ITER 519 24 BUILD_LIST 496 25 IMPORT_NAME 470 26 POP_JUMP_IF_TRUE 469 27 BUILD_CLASS 401 28 LOAD_LOCALS 401 29 BINARY_SUBSCR 370 30 STORE_MAP 292 31 BINARY_ADD 273 32 JUMP_IF_TRUE_OR_POP 220 33 UNPACK_SEQUENCE 219 34 BINARY_MODULO 202 35 END_FINALLY 192 36 DUP_TOP 188 37 SETUP_EXCEPT 155 38 STORE_SUBSCR 114 39 INPLACE_ADD 94 40 SLICE+1 93 41 BREAK_LOOP 92 42 BUILD_MAP 70 43 BINARY_SUBTRACT 63 44 UNARY_NOT 50 45 YIELD_VALUE 44 46 SETUP_FINALLY 31 47 ROT_TWO 23 48 SLICE+2 23 49 SLICE+3 23 50 BINARY_MULTIPLY 19 51 LIST_APPEND 15 52 BINARY_OR 11 53 DELETE_SLICE+0 11 54 LOAD_DEREF 11 55 DELETE_SUBSCR 9 56 BINARY_AND 8 57 BINARY_RSHIFT 8 58 INPLACE_SUBTRACT 8 59 CALL_FUNCTION_VAR 7 60 SETUP_WITH 6 61 WITH_CLEANUP 6 62 BINARY_LSHIFT 4 63 DUP_TOPX 4 64 JUMP_IF_FALSE_OR_POP 4 65 LOAD_CLOSURE 4 66 MAKE_CLOSURE 4 67 ROT_THREE 4 68 STORE_DEREF 4 69 STORE_GLOBAL 4 70 CALL_FUNCTION_VAR_KW 3 71 PRINT_ITEM 3 72 PRINT_NEWLINE 3 73 BINARY_DIVIDE 2 74 BINARY_XOR 2 75 INPLACE_MULTIPLY 2 76 UNARY_NEGATIVE 2 77 BINARY_FLOOR_DIVIDE 1 78 INPLACE_RSHIFT 1 79 UNARY_INVERT 1 -- Total unique opcodes: 79 Unused opcodes: op_name 1 BINARY_POWER 2 BINARY_TRUE_DIVIDE 3 BUILD_SET 4 BUILD_SLICE 5 CALL_FUNCTION_KW 6 CONTINUE_LOOP 7 DELETE_ATTR 8 DELETE_FAST 9 DELETE_GLOBAL 10 DELETE_NAME 11 DELETE_SLICE+1 12 DELETE_SLICE+2 13 DELETE_SLICE+3 14 EXEC_STMT 15 EXTENDED_ARG 16 IMPORT_STAR 17 INPLACE_AND 18 INPLACE_DIVIDE 19 INPLACE_FLOOR_DIVIDE 20 INPLACE_LSHIFT 21 INPLACE_MODULO 22 INPLACE_OR 23 INPLACE_POWER 24 INPLACE_TRUE_DIVIDE 25 INPLACE_XOR 26 MAP_ADD 27 NOP 28 PRINT_EXPR 29 PRINT_ITEM_TO 30 PRINT_NEWLINE_TO 31 ROT_FOUR 32 SET_ADD 33 SLICE+0 34 STOP_CODE 35 STORE_SLICE+0 36 STORE_SLICE+1 37 STORE_SLICE+2 38 STORE_SLICE+3 39 UNARY_CONVERT 40 UNARY_POSITIVE Memory Operations: # A tibble: 15 x 3 kind op_name n 1 ATTR LOAD_ATTR 12188 2 ATTR STORE_ATTR 1060 3 CLOSURE LOAD_CLOSURE 4 4 CONST LOAD_CONST 11163 5 DEREF LOAD_DEREF 11 6 DEREF STORE_DEREF 4 7 FAST LOAD_FAST 15188 8 FAST STORE_FAST 4456 9 GLOBAL LOAD_GLOBAL 6100 10 GLOBAL STORE_GLOBAL 4 11 LOCALS LOAD_LOCALS 401 12 MAP STORE_MAP 292 13 NAME STORE_NAME 4415 14 NAME LOAD_NAME 2864 15 SUBSCR STORE_SUBSCR 114 Imports: # A tibble: 2 x 2 op_name n 1 IMPORT_FROM 701 2 IMPORT_NAME 470 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 3970 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3970 3 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3970 4 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3970 5 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3970 6 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3970 7 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3970 8 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3970 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3970 10 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3952 ===== 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/oil_lang/__init__.pyc 2 8 /home/andy/git/oilshell/oil/osh/__init__.pyc 2 9 /home/andy/git/oilshell/oil/pylib/__init__.pyc 2 10 /home/andy/git/oilshell/oil/tools/__init__.pyc 2 11 /home/andy/git/oilshell/oil/_devbuild/gen/osh_help.pyc 5 12 /home/andy/git/oilshell/oil/vendor/typing.pyc 6 13 /home/andy/git/oilshell/oil/asdl/const.pyc 7 14 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/stat.pyc 10 15 /home/andy/git/oilshell/oil/oil_lang/cmd_exec.pyc 11 16 /home/andy/git/oilshell/oil/pylib/cgi.pyc 11 17 /home/andy/git/oilshell/oil/_devbuild/gen/types_asdl.pyc 13 18 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 14 19 /home/andy/git/oilshell/oil/core/meta.pyc 15 20 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/__future__.pyc 15 Files with many ops: # A tibble: 10 x 2 # Groups: path [10] path n 1 /home/andy/git/oilshell/oil/core/process.pyc 46 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc 46 3 /home/andy/git/oilshell/oil/osh/expr_eval.pyc 47 4 /home/andy/git/oilshell/oil/osh/word_eval.pyc 47 5 /home/andy/git/oilshell/oil/osh/string_ops.pyc 48 6 /home/andy/git/oilshell/oil/bin/oil.pyc 49 7 /home/andy/git/oilshell/oil/osh/state.pyc 49 8 /home/andy/git/oilshell/oil/core/comp_ui.pyc 51 9 /home/andy/git/oilshell/oil/osh/builtin.pyc 53 10 /home/andy/git/oilshell/oil/core/completion.pyc 56 Unique ops for files that just parse: # A tibble: 8 x 2 # Groups: path [8] path n 1 /home/andy/git/oilshell/oil/frontend/lex.pyc 22 2 /home/andy/git/oilshell/oil/osh/arith_parse.pyc 22 3 /home/andy/git/oilshell/oil/frontend/parse_lib.pyc 29 4 /home/andy/git/oilshell/oil/osh/bool_parse.pyc 30 5 /home/andy/git/oilshell/oil/frontend/lexer.pyc 34 6 /home/andy/git/oilshell/oil/frontend/reader.pyc 34 7 /home/andy/git/oilshell/oil/osh/word_parse.pyc 36 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 45 -- Unique opcodes for parsing: 52