===== BASIC METRICS -- Number of files: 66 -- Total bytecode bytes: 230525 -- Total instructions: 83213 Duplicate path/name # A tibble: 6 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 99 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 99 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 99 4 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 99 5 /home/andy/git/oilshell/oil/core/completion.pyc __init__ 14 6 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc AbbreviatedTree 14 ===== 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 1163 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/osh/braces.pyc _BraceDetect str 943 12 /home/andy/git/oilshell/oil/core/completion.pyc str 886 13 /home/andy/git/oilshell/oil/core/dev.pyc CrashDumper str 812 14 /home/andy/git/oilshell/oil/osh/builtin.pyc Wait str 807 15 /home/andy/git/oilshell/oil/oil_lang/cmd_parse.pyc ParseWord str 801 16 /home/andy/git/oilshell/oil/core/process.pyc Waiter str 743 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: 126035 ===== 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 604 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc PrettyTree 492 3 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 398 4 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 335 5 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 314 6 /home/andy/git/oilshell/oil/_devbuild/gen/osh_help.pyc 226 7 /home/andy/git/oilshell/oil/frontend/lex.pyc 157 8 /home/andy/git/oilshell/oil/osh/builtin.pyc 131 9 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 104 10 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 99 11 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 99 12 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc builtin_e 82 13 /home/andy/git/oilshell/oil/bin/oil.pyc 78 14 /home/andy/git/oilshell/oil/core/completion.pyc Matches 70 15 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 68 16 /home/andy/git/oilshell/oil/osh/state.pyc 63 17 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Kind 62 18 /home/andy/git/oilshell/oil/core/completion.pyc 58 19 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 55 20 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc CommandParser 49 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 8172 2 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc _AbbreviatedTree 5070 3 /home/andy/git/oilshell/oil/core/completion.pyc Matches 1569 4 /home/andy/git/oilshell/oil/_devbuild/gen/id_kind_asdl.pyc Id 1514 5 /home/andy/git/oilshell/oil/frontend/lex.pyc 1469 6 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc __init__ 1392 7 /home/andy/git/oilshell/oil/osh/expr_eval.pyc Eval 1383 8 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 1373 9 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc 1306 10 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 1240 11 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc PrettyTree 962 12 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 892 13 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 816 14 /home/andy/git/oilshell/oil/osh/builtin.pyc 730 15 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordPart 566 16 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc _AbbreviatedTree 533 17 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _RunBuiltin 491 18 /home/andy/git/oilshell/oil/_devbuild/gen/syntax_asdl.pyc AbbreviatedTree 460 19 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 459 20 /home/andy/git/oilshell/oil/osh/builtin_comp.pyc __call__ 457 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 1251 2 /home/andy/git/oilshell/oil/frontend/lex.pyc 0 0 33 4265 3 /home/andy/git/oilshell/oil/osh/state.pyc 0 0 19 650 4 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 61 14 2514 5 /home/andy/git/oilshell/oil/osh/arith_parse.pyc MakeShellSpec 0 1 14 835 6 /home/andy/git/oilshell/oil/core/completion.pyc Matches 2 33 11 2327 7 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseCommand 1 2 11 453 8 /home/andy/git/oilshell/oil/osh/word_parse.pyc _ReadWord 2 3 11 582 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Execute 3 7 10 336 10 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc CommandParser 0 0 10 533 Frames with many locals path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain 4 61 14 2514 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch 3 53 7 3869 3 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 4 35 6 3354 4 /home/andy/git/oilshell/oil/core/completion.pyc Matches 2 33 11 2327 5 /home/andy/git/oilshell/oil/osh/word_eval.pyc _EvalBracedVarSub 4 32 6 2370 6 /home/andy/git/oilshell/oil/frontend/reader.pyc Eval 2 30 6 1166 7 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MakeAssignPair 2 28 5 826 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases 2 27 6 786 9 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseSimpleCommand 1 20 6 814 10 /home/andy/git/oilshell/oil/osh/builtin_comp.pyc Build 4 18 9 1174 ===== NAMES Common types # A tibble: 4 x 2 kind n 1 name 15978 2 var 5839 3 cell 2 4 free 2 Common names # A tibble: 20 x 2 name n 1 self 1087 2 None 448 3 __name__ 380 4 append 358 5 spids 358 6 __module__ 349 7 AssertionError 292 8 __init__ 247 9 PrettyNode 240 10 fields 230 11 _AbbreviatedTree 227 12 L 226 13 out_node 226 14 x0 214 15 AbbreviatedTree 204 16 tag 201 17 PrettyTree 200 18 children 189 19 name 179 20 x1 177 -- Total length of all 21821 names: 162691 -- Total length of 2896 unique names: 28547 ===== CONSTS Types of constants # A tibble: 6 x 2 type n 1 str 4679 2 code 1712 3 NoneType 1404 4 int 1270 5 tuple 492 6 float 3 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 1712 2 CO_OPTIMIZED 1363 3 CO_FUTURE_PRINT_FUNCTION 654 4 CO_GENERATOR 30 5 CO_NESTED 23 6 CO_VARARGS 17 7 CO_VARKEYWORDS 4 ===== OPS Ops Used by Frequency # A tibble: 79 x 2 op_name n 1 LOAD_FAST 14104 2 LOAD_ATTR 11383 3 LOAD_CONST 10141 4 CALL_FUNCTION 7357 5 LOAD_GLOBAL 5607 6 STORE_FAST 4189 7 STORE_NAME 3884 8 POP_TOP 3267 9 LOAD_NAME 2540 10 RETURN_VALUE 2372 11 POP_JUMP_IF_FALSE 2262 12 COMPARE_OP 1877 13 MAKE_FUNCTION 1711 14 JUMP_FORWARD 1457 15 BUILD_TUPLE 1291 16 JUMP_ABSOLUTE 975 17 STORE_ATTR 925 18 POP_BLOCK 722 19 RAISE_VARARGS 571 20 SETUP_LOOP 546 21 FOR_ITER 509 22 GET_ITER 509 23 BUILD_LIST 481 24 POP_JUMP_IF_TRUE 470 25 BUILD_CLASS 349 26 LOAD_LOCALS 349 27 IMPORT_FROM 322 28 IMPORT_NAME 319 29 BINARY_SUBSCR 318 30 STORE_MAP 256 31 UNPACK_SEQUENCE 229 32 BINARY_ADD 224 33 JUMP_IF_TRUE_OR_POP 209 34 END_FINALLY 176 35 DUP_TOP 174 36 BINARY_MODULO 172 37 SETUP_EXCEPT 144 38 STORE_SUBSCR 111 39 BREAK_LOOP 83 40 INPLACE_ADD 82 41 SLICE+1 82 42 BUILD_MAP 68 43 UNARY_NOT 48 44 BINARY_SUBTRACT 47 45 YIELD_VALUE 44 46 SETUP_FINALLY 26 47 SLICE+3 26 48 ROT_TWO 23 49 SLICE+2 20 50 BINARY_MULTIPLY 17 51 LIST_APPEND 15 52 LOAD_DEREF 14 53 BINARY_OR 11 54 DELETE_SLICE+0 11 55 DELETE_SUBSCR 10 56 BINARY_AND 8 57 BINARY_RSHIFT 8 58 INPLACE_SUBTRACT 7 59 SETUP_WITH 6 60 WITH_CLEANUP 6 61 CALL_FUNCTION_VAR 5 62 BINARY_LSHIFT 4 63 JUMP_IF_FALSE_OR_POP 4 64 PRINT_ITEM 4 65 PRINT_NEWLINE 4 66 STORE_GLOBAL 4 67 CALL_FUNCTION_VAR_KW 3 68 DUP_TOPX 3 69 ROT_THREE 3 70 BINARY_DIVIDE 2 71 BINARY_XOR 2 72 INPLACE_MULTIPLY 2 73 LOAD_CLOSURE 2 74 UNARY_NEGATIVE 2 75 CONTINUE_LOOP 1 76 INPLACE_RSHIFT 1 77 MAKE_CLOSURE 1 78 STORE_DEREF 1 79 UNARY_INVERT 1 -- Total unique opcodes: 79 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 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 11383 2 ATTR STORE_ATTR 925 3 CLOSURE LOAD_CLOSURE 2 4 CONST LOAD_CONST 10141 5 DEREF LOAD_DEREF 14 6 DEREF STORE_DEREF 1 7 FAST LOAD_FAST 14104 8 FAST STORE_FAST 4189 9 GLOBAL LOAD_GLOBAL 5607 10 GLOBAL STORE_GLOBAL 4 11 LOCALS LOAD_LOCALS 349 12 MAP STORE_MAP 256 13 NAME STORE_NAME 3884 14 NAME LOAD_NAME 2540 15 SUBSCR STORE_SUBSCR 111 Imports: # A tibble: 2 x 2 op_name n 1 IMPORT_FROM 322 2 IMPORT_NAME 319 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 3859 2 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3859 3 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3859 4 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3859 5 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3859 6 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3859 7 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3859 8 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3859 9 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3859 10 /home/andy/git/oilshell/oil/osh/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3841 ===== 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/id_kind_asdl.pyc 13 18 /home/andy/git/oilshell/oil/_devbuild/gen/types_asdl.pyc 13 19 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/__future__.pyc 15 20 /home/andy/git/oilshell/oil/pylib/path_stat.pyc 18 Files with many ops: # A tibble: 10 x 2 # Groups: path [10] path n 1 /home/andy/git/oilshell/oil/frontend/reader.pyc 44 2 /home/andy/git/oilshell/oil/core/process.pyc 45 3 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 45 4 /home/andy/git/oilshell/oil/osh/word_eval.pyc 45 5 /home/andy/git/oilshell/oil/osh/expr_eval.pyc 47 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/core/completion.pyc 56 Unique ops for files that just parse: # A tibble: 9 x 2 # Groups: path [9] 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 28 4 /home/andy/git/oilshell/oil/osh/bool_parse.pyc 30 5 /home/andy/git/oilshell/oil/oil_lang/cmd_parse.pyc 32 6 /home/andy/git/oilshell/oil/frontend/lexer.pyc 34 7 /home/andy/git/oilshell/oil/osh/word_parse.pyc 36 8 /home/andy/git/oilshell/oil/frontend/reader.pyc 44 9 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 45 -- Unique opcodes for parsing: 54