===== BASIC METRICS -- Number of files: 76 -- Total bytecode bytes: 271983 -- Total instructions: 98133 Duplicate path/name # A tibble: 6 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 133 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 133 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 133 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 133 5 /home/andy/git/oilshell/oil/osh/builtin.pyc __init__ 27 6 /home/andy/git/oilshell/oil/osh/builtin.pyc __call__ 26 ===== 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/pgen2/grammar.pyc Grammar str 2600 3 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseSimpleCommand str 2301 4 /home/andy/git/oilshell/oil/osh/word_parse.pyc _ReadBracedBracedVarSub str 2248 5 /home/andy/git/oilshell/oil/frontend/args.pyc str 1669 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/pgen2/parse.pyc __init__ str 1241 9 /home/andy/git/oilshell/oil/tools/osh2oil.pyc _GetRhsStyle str 1209 10 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases str 1172 11 /home/andy/git/oilshell/oil/frontend/args.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 828 16 /home/andy/git/oilshell/oil/core/dev.pyc CrashDumper str 812 17 /home/andy/git/oilshell/oil/pgen2/grammar.pyc dump str 749 18 /home/andy/git/oilshell/oil/osh/builtin.pyc Wait str 655 19 /home/andy/git/oilshell/oil/core/main_loop.pyc Batch str 635 20 /home/andy/git/oilshell/oil/osh/builtin.pyc str 634 -- total string bytes: 139649 ===== FRAMES Frames with many consts # A tibble: 20 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 637 2 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Id 614 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 518 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 407 5 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 339 6 /home/andy/git/oilshell/oil/_devbuild/gen/osh_help.pyc 240 7 /home/andy/git/oilshell/oil/frontend/lex.pyc 199 8 /home/andy/git/oilshell/oil/osh/builtin.pyc __call__ 174 9 /home/andy/git/oilshell/oil/osh/builtin.pyc 158 10 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 133 11 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 133 12 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 107 13 /home/andy/git/oilshell/oil/_devbuild/gen/grammar_nt.pyc 103 14 /home/andy/git/oilshell/oil/bin/oil.pyc 90 15 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc builtin_e 88 16 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 75 17 /home/andy/git/oilshell/oil/core/completion.pyc Matches 69 18 /home/andy/git/oilshell/oil/osh/state.pyc 69 19 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Kind 68 20 /home/andy/git/oilshell/oil/core/completion.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 10270 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 6343 3 /home/andy/git/oilshell/oil/osh/builtin.pyc __call__ 2567 4 /home/andy/git/oilshell/oil/frontend/lex.pyc 2044 5 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 1758 6 /home/andy/git/oilshell/oil/core/completion.pyc Matches 1699 7 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 1680 8 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Id 1539 9 /home/andy/git/oilshell/oil/osh/expr_eval.pyc Eval 1449 10 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 1423 11 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 1307 12 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 1241 13 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 1064 14 /home/andy/git/oilshell/oil/osh/builtin.pyc 842 15 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 841 16 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 736 17 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 635 18 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 596 19 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordPart 566 20 /home/andy/git/oilshell/oil/oil_lang/expr_to_ast.pyc Expr 507 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 2194 2 /home/andy/git/oilshell/oil/frontend/lex.pyc 0 0 50 5940 3 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 1 1 46 1314 4 /home/andy/git/oilshell/oil/osh/state.pyc 0 0 19 675 5 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 69 14 3675 6 /home/andy/git/oilshell/oil/osh/arith_parse.pyc MakeShellSpec 0 1 14 835 7 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCommand 1 2 13 459 8 /home/andy/git/oilshell/oil/core/completion.pyc Matches 2 36 11 2720 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 9 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 69 14 3675 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 3 54 7 3991 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 34 6 2443 6 /home/andy/git/oilshell/oil/osh/history.pyc Eval 2 31 6 1199 7 /home/andy/git/oilshell/oil/osh/builtin_printf.pyc __call__ 2 29 6 1066 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MakeAssignPair 3 27 4 856 9 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases 2 27 6 738 10 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseSimpleCommand 1 20 6 820 ===== NAMES Common types # A tibble: 4 x 2 kind n 1 name 19471 2 var 6926 3 cell 4 4 free 4 Common names # A tibble: 20 x 2 name n 1 self 1349 2 None 503 3 spids 471 4 __name__ 462 5 __module__ 435 6 append 422 7 AssertionError 328 8 __init__ 321 9 PrettyNode 310 10 fields 300 11 _AbbreviatedTree 297 12 L 296 13 out_node 296 14 x0 274 15 AbbreviatedTree 255 16 PrettyTree 251 17 children 232 18 x1 223 19 PrettyLeaf 204 20 tag 204 -- Total length of all 26405 names: 202245 -- Total length of 3325 unique names: 33109 ===== CONSTS Types of constants # A tibble: 6 x 2 type n 1 str 5368 2 code 2058 3 NoneType 1690 4 int 1547 5 tuple 714 6 float 3 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 2058 2 CO_OPTIMIZED 1623 3 CO_FUTURE_PRINT_FUNCTION 801 4 CO_GENERATOR 33 5 CO_NESTED 33 6 CO_VARARGS 19 7 CO_VARKEYWORDS 5 ===== OPS Ops Used by Frequency # A tibble: 80 x 2 op_name n 1 LOAD_FAST 16449 2 LOAD_ATTR 13229 3 LOAD_CONST 12229 4 CALL_FUNCTION 8638 5 LOAD_GLOBAL 6493 6 STORE_NAME 4889 7 STORE_FAST 4833 8 POP_TOP 3811 9 LOAD_NAME 3270 10 RETURN_VALUE 2788 11 POP_JUMP_IF_FALSE 2487 12 MAKE_FUNCTION 2054 13 COMPARE_OP 1939 14 JUMP_FORWARD 1611 15 BUILD_TUPLE 1566 16 STORE_ATTR 1175 17 JUMP_ABSOLUTE 1054 18 POP_BLOCK 783 19 IMPORT_FROM 780 20 RAISE_VARARGS 648 21 SETUP_LOOP 587 22 FOR_ITER 563 23 GET_ITER 563 24 BUILD_LIST 552 25 POP_JUMP_IF_TRUE 525 26 IMPORT_NAME 521 27 BUILD_CLASS 435 28 LOAD_LOCALS 435 29 BINARY_SUBSCR 421 30 STORE_MAP 323 31 BINARY_ADD 287 32 JUMP_IF_TRUE_OR_POP 246 33 UNPACK_SEQUENCE 242 34 BINARY_MODULO 216 35 DUP_TOP 198 36 END_FINALLY 196 37 SETUP_EXCEPT 159 38 STORE_SUBSCR 127 39 SLICE+1 95 40 BREAK_LOOP 93 41 INPLACE_ADD 91 42 BUILD_MAP 82 43 BINARY_SUBTRACT 63 44 UNARY_NOT 46 45 YIELD_VALUE 45 46 SETUP_FINALLY 31 47 SLICE+3 26 48 LIST_APPEND 25 49 ROT_TWO 25 50 SLICE+2 24 51 BINARY_MULTIPLY 20 52 BINARY_OR 11 53 DELETE_SLICE+0 11 54 DELETE_SUBSCR 9 55 INPLACE_SUBTRACT 9 56 LOAD_DEREF 9 57 BINARY_AND 8 58 BINARY_RSHIFT 8 59 PRINT_ITEM 8 60 PRINT_NEWLINE 8 61 CALL_FUNCTION_VAR 7 62 SETUP_WITH 6 63 WITH_CLEANUP 6 64 BINARY_LSHIFT 4 65 DUP_TOPX 4 66 JUMP_IF_FALSE_OR_POP 4 67 LOAD_CLOSURE 4 68 MAKE_CLOSURE 4 69 ROT_THREE 4 70 STORE_GLOBAL 4 71 CALL_FUNCTION_VAR_KW 3 72 BINARY_DIVIDE 2 73 BINARY_XOR 2 74 BUILD_SLICE 2 75 INPLACE_MULTIPLY 2 76 UNARY_NEGATIVE 2 77 BINARY_FLOOR_DIVIDE 1 78 INPLACE_RSHIFT 1 79 STORE_DEREF 1 80 UNARY_INVERT 1 -- Total unique opcodes: 80 Unused opcodes: op_name 1 BINARY_POWER 2 BINARY_TRUE_DIVIDE 3 BUILD_SET 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_OR 22 INPLACE_POWER 23 INPLACE_TRUE_DIVIDE 24 INPLACE_XOR 25 MAP_ADD 26 NOP 27 PRINT_EXPR 28 PRINT_ITEM_TO 29 PRINT_NEWLINE_TO 30 ROT_FOUR 31 SET_ADD 32 SLICE+0 33 STOP_CODE 34 STORE_SLICE+0 35 STORE_SLICE+1 36 STORE_SLICE+2 37 STORE_SLICE+3 38 UNARY_CONVERT 39 UNARY_POSITIVE Memory Operations: # A tibble: 15 x 3 kind op_name n 1 ATTR LOAD_ATTR 13229 2 ATTR STORE_ATTR 1175 3 CLOSURE LOAD_CLOSURE 4 4 CONST LOAD_CONST 12229 5 DEREF LOAD_DEREF 9 6 DEREF STORE_DEREF 1 7 FAST LOAD_FAST 16449 8 FAST STORE_FAST 4833 9 GLOBAL LOAD_GLOBAL 6493 10 GLOBAL STORE_GLOBAL 4 11 LOCALS LOAD_LOCALS 435 12 MAP STORE_MAP 323 13 NAME STORE_NAME 4889 14 NAME LOAD_NAME 3270 15 SUBSCR STORE_SUBSCR 127 Imports: # A tibble: 2 x 2 op_name n 1 IMPORT_FROM 780 2 IMPORT_NAME 521 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 3981 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3981 3 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3981 4 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3981 5 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3981 6 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3981 7 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3981 8 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3981 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3981 10 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3963 ===== 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/grammar_nt.pyc 3 12 /home/andy/git/oilshell/oil/pgen2/__init__.pyc 3 13 /home/andy/git/oilshell/oil/_devbuild/gen/osh_help.pyc 5 14 /home/andy/git/oilshell/oil/vendor/typing.pyc 6 15 /home/andy/git/oilshell/oil/asdl/const.pyc 7 16 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/stat.pyc 10 17 /home/andy/git/oilshell/oil/oil_lang/cmd_exec.pyc 11 18 /home/andy/git/oilshell/oil/pylib/cgi.pyc 11 19 /home/andy/git/oilshell/oil/_devbuild/gen/types_asdl.pyc 13 20 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc 14 Files with many ops: # A tibble: 10 x 2 # Groups: path [10] path n 1 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc 46 2 /home/andy/git/oilshell/oil/osh/expr_eval.pyc 47 3 /home/andy/git/oilshell/oil/osh/state.pyc 47 4 /home/andy/git/oilshell/oil/osh/word_eval.pyc 47 5 /home/andy/git/oilshell/oil/bin/oil.pyc 48 6 /home/andy/git/oilshell/oil/osh/string_ops.pyc 48 7 /home/andy/git/oilshell/oil/core/process.pyc 50 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: 10 x 2 # Groups: path [10] path n 1 /home/andy/git/oilshell/oil/osh/arith_parse.pyc 22 2 /home/andy/git/oilshell/oil/frontend/lex.pyc 23 3 /home/andy/git/oilshell/oil/osh/bool_parse.pyc 30 4 /home/andy/git/oilshell/oil/frontend/reader.pyc 33 5 /home/andy/git/oilshell/oil/frontend/lexer.pyc 34 6 /home/andy/git/oilshell/oil/pgen2/parse.pyc 34 7 /home/andy/git/oilshell/oil/frontend/parse_lib.pyc 35 8 /home/andy/git/oilshell/oil/osh/word_parse.pyc 36 9 /home/andy/git/oilshell/oil/oil_lang/expr_parse.pyc 39 10 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 45 -- Unique opcodes for parsing: 54