===== BASIC METRICS -- Number of files: 79 -- Total bytecode bytes: 221856 -- Total instructions: 81184 Duplicate path/name # A tibble: 6 x 3 path code_name n 1 /home/andy/git/oilshell/oil/_devbuild/gen/osh_asdl.pyc __init__ 74 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/asdl/asdl_.pyc __init__ 12 5 /home/andy/git/oilshell/oil/core/args.pyc __init__ 12 6 /home/andy/git/oilshell/oil/core/process.pyc __init__ 12 ===== BIG STRINGS path code_name type len_or_val 1 /home/andy/git/oilshell/oil/osh/lex.pyc str 3101 2 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/os.pyc walk str 2771 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/core/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/Python-2.7.13/Lib/pkgutil.pyc extend_path str 1419 8 /home/andy/git/oilshell/oil/osh/word_parse.pyc str 1286 9 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/codecs.pyc read str 1283 10 /home/andy/git/oilshell/oil/tools/osh2oil.pyc _GetRhsStyle str 1209 11 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/codecs.pyc open str 1197 12 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/pkgutil.pyc iter_importers str 1161 13 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/os.pyc str 1149 14 /home/andy/git/oilshell/oil/core/args.pyc OilFlags str 1144 15 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoWordInCommand str 1139 16 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MaybeExpandAliases str 1080 17 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/encodings/__init__.pyc str 1068 18 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/codecs.pyc EncodedFile str 997 19 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/pkgutil.pyc walk_packages str 957 20 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/codecs.pyc __init__ str 954 -- total string bytes: 176681 ===== FRAMES Frames with many consts # A tibble: 1,492 x 3 path code_name n 1 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/encodings/aliases.pyc 405 2 /home/andy/git/oilshell/oil/core/id_kind.pyc AddKinds 314 3 /home/andy/git/oilshell/oil/_devbuild/gen/osh_asdl.pyc 216 4 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 189 5 /home/andy/git/oilshell/oil/_devbuild/gen/osh_help.pyc 180 6 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/posixpath.pyc 144 7 /home/andy/git/oilshell/oil/osh/lex.pyc 135 8 /home/andy/git/oilshell/oil/core/builtin.pyc 121 9 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/os.pyc 97 10 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/codecs.pyc 92 # ... with 1,482 more rows Frames with many ops # A tibble: 1,501 x 3 path code_name n 1 /home/andy/git/oilshell/oil/core/expr_eval.pyc Eval 1369 2 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch 1356 3 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 1240 4 /home/andy/git/oilshell/oil/osh/lex.pyc 1110 5 /home/andy/git/oilshell/oil/_devbuild/gen/osh_asdl.pyc __init__ 1094 6 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/encodings/aliases.pyc 927 7 /home/andy/git/oilshell/oil/_devbuild/gen/osh_asdl.pyc 896 8 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 831 9 /home/andy/git/oilshell/oil/core/word_eval.pyc _EvalBracedVarSub 789 10 /home/andy/git/oilshell/oil/core/builtin.pyc 669 # ... with 1,491 more rows 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 1110 2 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/codecs.pyc 0 0 43 880 3 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/posixpath.pyc 0 0 38 507 4 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/posixpath.pyc 0 0 38 507 5 /home/andy/git/oilshell/oil/osh/lex.pyc 0 0 33 3206 6 /home/andy/git/oilshell/oil/core/state.pyc 0 0 19 608 7 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/_abcoll.pyc 0 0 16 660 8 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.pyc _run_module_code 6 8 16 90 9 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.pyc run_path 3 13 16 316 10 /home/andy/git/oilshell/oil/bin/oil.pyc OshMain 3 48 15 1826 Frames with many locals path code_name argcount nlocals stacksize bytecode_bytes 1 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch 3 54 8 3824 2 /home/andy/git/oilshell/oil/bin/oil.pyc OshMain 3 48 15 1826 3 /home/andy/git/oilshell/oil/tools/osh2oil.pyc DoCommand 4 35 6 3354 4 /home/andy/git/oilshell/oil/core/word_eval.pyc _EvalBracedVarSub 4 30 6 2289 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/asdl/py_meta.pyc MakeTypes 3 19 6 550 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc ParseSimpleCommand 2 19 6 801 9 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc _MakeAssignment 3 18 6 467 10 /home/andy/git/oilshell/oil/core/completion.pyc _GetCompletionType 4 17 6 376 ===== NAMES Common types # A tibble: 4 x 2 kind n 1 name 15223 2 var 5727 3 free 16 4 cell 14 Common names # A tibble: 3,417 x 2 name n 1 self 1039 2 None 400 3 __name__ 391 4 __module__ 351 5 __init__ 253 6 spids 211 7 append 185 8 __doc__ 184 9 tag 180 10 True 175 # ... with 3,407 more rows -- Total length of all 20980 names: 149033 -- Total length of 3417 unique names: 31930 ===== CONSTS Types of constants # A tibble: 7 x 2 type n 1 str 4712 2 code 1856 3 NoneType 1486 4 int 1086 5 tuple 499 6 unicode 7 7 float 2 ===== FLAGS Common flags # A tibble: 7 x 2 flag n 1 CO_NEWLOCALS 1856 2 CO_OPTIMIZED 1506 3 CO_FUTURE_PRINT_FUNCTION 618 4 CO_GENERATOR 72 5 CO_NESTED 47 6 CO_VARARGS 41 7 CO_VARKEYWORDS 17 ===== OPS Common: # A tibble: 20 x 2 op_name n 1 LOAD_FAST 13637 2 LOAD_CONST 10704 3 LOAD_ATTR 9463 4 CALL_FUNCTION 6152 5 LOAD_GLOBAL 5491 6 STORE_FAST 3742 7 STORE_NAME 3738 8 POP_TOP 3078 9 RETURN_VALUE 2680 10 LOAD_NAME 2559 11 POP_JUMP_IF_FALSE 2511 12 COMPARE_OP 2024 13 MAKE_FUNCTION 1843 14 JUMP_FORWARD 1574 15 STORE_ATTR 1047 16 JUMP_ABSOLUTE 1015 17 BUILD_TUPLE 841 18 POP_BLOCK 719 19 BINARY_SUBSCR 561 20 STORE_MAP 541 Rare: # A tibble: 20 x 2 op_name n 1 STORE_SLICE+1 5 2 BINARY_XOR 4 3 DELETE_SLICE+1 4 4 PRINT_ITEM 4 5 PRINT_NEWLINE 4 6 STORE_DEREF 4 7 UNARY_NEGATIVE 4 8 INPLACE_AND 3 9 INPLACE_MULTIPLY 3 10 INPLACE_RSHIFT 3 11 BINARY_DIVIDE 2 12 BINARY_FLOOR_DIVIDE 2 13 CALL_FUNCTION_KW 2 14 SLICE+0 2 15 STORE_SLICE+0 2 16 DELETE_FAST 1 17 EXEC_STMT 1 18 INPLACE_XOR 1 19 MAP_ADD 1 20 UNARY_INVERT 1 Imports: # A tibble: 3 x 2 op_name n 1 IMPORT_FROM 316 2 IMPORT_NAME 417 3 IMPORT_STAR 8 Large op_arg (jump targets): path code_name op_name op_arg 1 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 2 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 3 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 4 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 5 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3814 6 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3814 7 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch JUMP_ABSOLUTE 3814 8 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3796 9 /home/andy/git/oilshell/oil/core/cmd_exec.pyc _Dispatch POP_JUMP_IF_FALSE 3636 10 /home/andy/git/oilshell/oil/core/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/osh/__init__.pyc 2 7 /home/andy/git/oilshell/oil/tools/__init__.pyc 2 8 /home/andy/git/oilshell/oil/_devbuild/gen/osh_help.pyc 5 9 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/encodings/aliases.pyc 5 10 /home/andy/git/oilshell/oil/asdl/const.pyc 7 11 /home/andy/git/oilshell/oil/asdl/cgi.pyc 10 12 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/stat.pyc 10 13 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/encodings/utf_8.pyc 14 14 /home/andy/git/oilshell/oil/_devbuild/gen/types_asdl.pyc 15 15 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/__future__.pyc 15 16 /home/andy/git/oilshell/oil/osh/parse_lib.pyc 17 17 /home/andy/git/oilshell/oil/_devbuild/gen/osh_asdl.pyc 18 18 /home/andy/git/oilshell/oil/_devbuild/gen/runtime_asdl.pyc 18 19 /home/andy/git/oilshell/oil/asdl/pretty.pyc 19 20 /home/andy/git/oilshell/oil/osh/arith_parse.pyc 22 Files with many ops: # A tibble: 10 x 2 # Groups: path [10] path n 1 /home/andy/git/oilshell/oil/core/libstr.pyc 48 2 /home/andy/git/oilshell/oil/core/state.pyc 49 3 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/posixpath.pyc 49 4 /home/andy/git/oilshell/oil/asdl/unpickle.pyc 50 5 /home/andy/git/oilshell/oil/core/cmd_exec.pyc 50 6 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/codecs.pyc 50 7 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/pkgutil.pyc 52 8 /home/andy/git/oilshell/oil/core/builtin.pyc 54 9 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/warnings.pyc 55 10 /home/andy/git/oilshell/oil/Python-2.7.13/Lib/_abcoll.pyc 59 Unique ops for files that just parse: # A tibble: 8 x 2 # Groups: path [8] path n 1 /home/andy/git/oilshell/oil/osh/parse_lib.pyc 17 2 /home/andy/git/oilshell/oil/osh/arith_parse.pyc 22 3 /home/andy/git/oilshell/oil/osh/lex.pyc 23 4 /home/andy/git/oilshell/oil/core/reader.pyc 30 5 /home/andy/git/oilshell/oil/osh/bool_parse.pyc 30 6 /home/andy/git/oilshell/oil/osh/word_parse.pyc 33 7 /home/andy/git/oilshell/oil/core/lexer.pyc 34 8 /home/andy/git/oilshell/oil/osh/cmd_parse.pyc 45 -- Unique opcodes for parsing: 51 -- Total unique opcodes: 93 Unused opcodes: op_name 1 BINARY_POWER 2 BINARY_TRUE_DIVIDE 3 BUILD_SET 4 BUILD_SLICE 5 CONTINUE_LOOP 6 DELETE_ATTR 7 DELETE_GLOBAL 8 DELETE_SLICE+2 9 DELETE_SLICE+3 10 EXTENDED_ARG 11 INPLACE_DIVIDE 12 INPLACE_FLOOR_DIVIDE 13 INPLACE_LSHIFT 14 INPLACE_MODULO 15 INPLACE_OR 16 INPLACE_POWER 17 INPLACE_TRUE_DIVIDE 18 NOP 19 PRINT_EXPR 20 ROT_FOUR 21 SET_ADD 22 STOP_CODE 23 STORE_SLICE+2 24 STORE_SLICE+3 25 UNARY_CONVERT 26 UNARY_POSITIVE