===== BASIC METRICS -- Number of files: 65 -- Total bytecode bytes: 177096 -- Total instructions: 64294 Duplicate path/name # A tibble: 6 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 92 2 /home/andy/git/oilshell/oil/core/completion.pyc __init__ 13 3 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc __init__ 13 4 /home/andy/git/oilshell/oil/core/process.pyc __init__ 12 5 /home/andy/git/oilshell/oil/frontend/args.pyc __init__ 12 6 /home/andy/git/oilshell/oil/asdl/runtime.pyc __repr__ 11 ===== 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/frontend/args.pyc OilFlags str 1144 9 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordInCommand str 1139 10 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases str 1080 11 /home/andy/git/oilshell/oil/osh/braces.pyc _BraceDetect str 943 12 /home/andy/git/oilshell/oil/core/dev.pyc CrashDumper str 812 13 /home/andy/git/oilshell/oil/osh/builtin.pyc Wait str 807 14 /home/andy/git/oilshell/oil/oil_lang/cmd_parse.pyc ParseWord str 801 15 /home/andy/git/oilshell/oil/core/process.pyc Waiter str 743 16 /home/andy/git/oilshell/oil/core/completion.pyc str 735 17 /home/andy/git/oilshell/oil/oil_lang/cmd_parse.pyc _ParseCommandLine str 689 18 /home/andy/git/oilshell/oil/core/main_loop.pyc Batch str 635 19 /home/andy/git/oilshell/oil/osh/builtin.pyc str 634 20 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _ParseCommandLine str 629 -- total string bytes: 114838 ===== FRAMES Frames with many consts # A tibble: 20 x 3 path code_name n 1 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 329 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 271 3 /home/andy/git/oilshell/oil/_devbuild/gen/osh_help.pyc 194 4 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 191 5 /home/andy/git/oilshell/oil/frontend/lex.pyc 150 6 /home/andy/git/oilshell/oil/osh/builtin.pyc 125 7 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 92 8 /home/andy/git/oilshell/oil/bin/oil.pyc 74 9 /home/andy/git/oilshell/oil/pylib/unpickle.pyc 67 10 /home/andy/git/oilshell/oil/_devbuild/gen/types_asdl.pyc 63 11 /home/andy/git/oilshell/oil/osh/state.pyc 61 12 /home/andy/git/oilshell/oil/pylib/unpickle.pyc Unpickler 54 13 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc CommandParser 50 14 /home/andy/git/oilshell/oil/core/completion.pyc 49 15 /home/andy/git/oilshell/oil/core/completion.pyc Matches 46 16 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/stat.pyc 43 17 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/__future__.pyc 42 18 /home/andy/git/oilshell/oil/asdl/format.pyc 41 19 /home/andy/git/oilshell/oil/frontend/args.pyc 38 20 /home/andy/git/oilshell/oil/asdl/runtime.pyc 37 Frames with many ops # A tibble: 20 x 3 path code_name n 1 /home/andy/git/oilshell/oil/frontend/lex.pyc 1393 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 1388 3 /home/andy/git/oilshell/oil/osh/expr_eval.pyc Eval 1369 4 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 1356 5 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 1349 6 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 1240 7 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 870 8 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 792 9 /home/andy/git/oilshell/oil/core/completion.pyc Matches 700 10 /home/andy/git/oilshell/oil/osh/builtin.pyc 694 11 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 623 12 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordPart 566 13 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _RunBuiltin 519 14 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalWordPart 431 15 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 416 16 /home/andy/git/oilshell/oil/bin/oil.pyc 389 17 /home/andy/git/oilshell/oil/frontend/args.pyc Parse 385 18 /home/andy/git/oilshell/oil/osh/split.pyc 364 19 /home/andy/git/oilshell/oil/pylib/unpickle.pyc Unpickler 357 20 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoAssignment 324 Frames with large stacksize path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 1 1 46 1192 2 /home/andy/git/oilshell/oil/frontend/lex.pyc 0 0 33 4039 3 /home/andy/git/oilshell/oil/osh/state.pyc 0 0 19 626 4 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 42 14 1739 5 /home/andy/git/oilshell/oil/osh/arith_parse.pyc MakeShellSpec 0 1 14 835 6 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCommand 2 3 11 471 7 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Execute 3 7 10 336 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc CommandParser 0 0 10 545 9 /home/andy/git/oilshell/oil/osh/word_parse.pyc _ReadWord 2 3 10 576 10 /home/andy/git/oilshell/oil/core/dev.pyc MaybeDump 2 6 9 165 Frames with many locals path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 3 54 8 3824 2 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 42 14 1739 3 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 4 35 6 3354 4 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 4 30 6 2298 5 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases 3 27 5 731 6 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MakeAssignPair 2 23 5 587 7 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseSimpleCommand 2 19 6 801 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MakeAssignment 3 18 6 467 9 /home/andy/git/oilshell/oil/core/completion.pyc _GetCompletionType 4 17 6 376 10 /home/andy/git/oilshell/oil/osh/builtin_bracket.pyc Test 2 17 5 577 ===== NAMES Common types # A tibble: 2 x 2 kind n 1 name 12693 2 var 4220 Common names # A tibble: 20 x 2 name n 1 self 769 2 __name__ 342 3 __module__ 314 4 None 309 5 spids 247 6 __init__ 234 7 tag 199 8 append 165 9 Id 163 10 AssertionError 161 11 ASDL_TYPE 152 12 TYPE_LOOKUP 150 13 __doc__ 141 14 True 130 15 s 121 16 name 120 17 False 115 18 __slots__ 105 19 len 102 20 node 99 -- Total length of all 16913 names: 123924 -- Total length of 2837 unique names: 27600 ===== CONSTS Types of constants # A tibble: 6 x 2 type n 1 str 3571 2 code 1357 3 NoneType 1080 4 int 919 5 tuple 467 6 float 2 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 1357 2 CO_OPTIMIZED 1043 3 CO_FUTURE_PRINT_FUNCTION 628 4 CO_GENERATOR 28 5 CO_NESTED 20 6 CO_VARARGS 16 7 CO_VARKEYWORDS 4 ===== OPS Ops Used by Frequency # A tibble: 76 x 2 op_name n 1 LOAD_FAST 10712 2 LOAD_ATTR 8383 3 LOAD_CONST 8044 4 CALL_FUNCTION 4909 5 LOAD_GLOBAL 4336 6 STORE_NAME 3072 7 STORE_FAST 2851 8 LOAD_NAME 2566 9 POP_TOP 2385 10 RETURN_VALUE 2021 11 POP_JUMP_IF_FALSE 1917 12 COMPARE_OP 1622 13 MAKE_FUNCTION 1357 14 JUMP_FORWARD 1127 15 STORE_ATTR 1084 16 JUMP_ABSOLUTE 722 17 BUILD_TUPLE 702 18 POP_BLOCK 467 19 BUILD_LIST 462 20 BINARY_SUBSCR 453 21 RAISE_VARARGS 378 22 BUILD_CLASS 314 23 LOAD_LOCALS 314 24 IMPORT_NAME 307 25 SETUP_LOOP 307 26 IMPORT_FROM 292 27 POP_JUMP_IF_TRUE 285 28 FOR_ITER 268 29 GET_ITER 268 30 STORE_MAP 237 31 UNPACK_SEQUENCE 227 32 BINARY_ADD 225 33 JUMP_IF_TRUE_OR_POP 205 34 DUP_TOP 165 35 STORE_SUBSCR 165 36 BINARY_MODULO 161 37 END_FINALLY 160 38 SETUP_EXCEPT 133 39 SLICE+1 83 40 BREAK_LOOP 81 41 INPLACE_ADD 80 42 BUILD_MAP 68 43 BINARY_SUBTRACT 48 44 UNARY_NOT 48 45 YIELD_VALUE 32 46 SLICE+2 31 47 ROT_TWO 26 48 SLICE+3 23 49 SETUP_FINALLY 21 50 LIST_APPEND 16 51 BINARY_MULTIPLY 15 52 BINARY_OR 11 53 DELETE_SUBSCR 9 54 BINARY_AND 8 55 BINARY_RSHIFT 8 56 CALL_FUNCTION_VAR 7 57 INPLACE_SUBTRACT 7 58 DELETE_SLICE+0 6 59 SETUP_WITH 6 60 STORE_GLOBAL 6 61 WITH_CLEANUP 6 62 STORE_SLICE+1 5 63 BINARY_LSHIFT 4 64 DELETE_SLICE+1 4 65 PRINT_ITEM 4 66 PRINT_NEWLINE 4 67 ROT_THREE 4 68 CALL_FUNCTION_VAR_KW 3 69 DUP_TOPX 3 70 JUMP_IF_FALSE_OR_POP 3 71 UNARY_NEGATIVE 3 72 BINARY_DIVIDE 2 73 BINARY_XOR 2 74 INPLACE_MULTIPLY 2 75 INPLACE_RSHIFT 1 76 UNARY_INVERT 1 -- Total unique opcodes: 76 Unused opcodes: op_name 1 BINARY_FLOOR_DIVIDE 2 BINARY_POWER 3 BINARY_TRUE_DIVIDE 4 BUILD_SET 5 BUILD_SLICE 6 CALL_FUNCTION_KW 7 CONTINUE_LOOP 8 DELETE_ATTR 9 DELETE_FAST 10 DELETE_GLOBAL 11 DELETE_NAME 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 LOAD_CLOSURE 27 LOAD_DEREF 28 MAKE_CLOSURE 29 MAP_ADD 30 NOP 31 PRINT_EXPR 32 PRINT_ITEM_TO 33 PRINT_NEWLINE_TO 34 ROT_FOUR 35 SET_ADD 36 SLICE+0 37 STOP_CODE 38 STORE_DEREF 39 STORE_SLICE+0 40 STORE_SLICE+2 41 STORE_SLICE+3 42 UNARY_CONVERT 43 UNARY_POSITIVE Memory Operations: # A tibble: 13 x 3 kind op_name n 1 ATTR LOAD_ATTR 8383 2 ATTR STORE_ATTR 1084 3 CONST LOAD_CONST 8044 4 FAST LOAD_FAST 10712 5 FAST STORE_FAST 2851 6 GLOBAL LOAD_GLOBAL 4336 7 GLOBAL STORE_GLOBAL 6 8 LOCALS LOAD_LOCALS 314 9 MAP STORE_MAP 237 10 NAME STORE_NAME 3072 11 NAME LOAD_NAME 2566 12 SLICE STORE_SLICE+1 5 13 SUBSCR STORE_SUBSCR 165 Imports: # A tibble: 2 x 2 op_name n 1 IMPORT_FROM 292 2 IMPORT_NAME 307 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 3814 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 3 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 4 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 5 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3814 6 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3814 7 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 8 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3796 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3636 10 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3536 ===== 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/asdl/const.pyc 7 13 /home/andy/git/oilshell/oil/pylib/cgi.pyc 10 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/_devbuild/gen/types_asdl.pyc 15 17 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/__future__.pyc 15 18 /home/andy/git/oilshell/oil/frontend/parse_lib.pyc 17 19 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 18 20 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 18 Files with many ops: # A tibble: 10 x 2 # Groups: path [10] path n 1 /home/andy/git/oilshell/oil/core/process.pyc 45 2 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 45 3 /home/andy/git/oilshell/oil/osh/word_eval.pyc 45 4 /home/andy/git/oilshell/oil/osh/expr_eval.pyc 47 5 /home/andy/git/oilshell/oil/core/completion.pyc 48 6 /home/andy/git/oilshell/oil/osh/string_ops.pyc 48 7 /home/andy/git/oilshell/oil/osh/state.pyc 49 8 /home/andy/git/oilshell/oil/osh/builtin.pyc 50 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc 50 10 /home/andy/git/oilshell/oil/pylib/unpickle.pyc 50 Unique ops for files that just parse: # A tibble: 9 x 2 # Groups: path [9] path n 1 /home/andy/git/oilshell/oil/frontend/parse_lib.pyc 17 2 /home/andy/git/oilshell/oil/frontend/lex.pyc 22 3 /home/andy/git/oilshell/oil/osh/arith_parse.pyc 22 4 /home/andy/git/oilshell/oil/osh/bool_parse.pyc 30 5 /home/andy/git/oilshell/oil/frontend/reader.pyc 32 6 /home/andy/git/oilshell/oil/oil_lang/cmd_parse.pyc 32 7 /home/andy/git/oilshell/oil/osh/word_parse.pyc 33 8 /home/andy/git/oilshell/oil/frontend/lexer.pyc 34 9 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 45 -- Unique opcodes for parsing: 52