Skip to content

Instantly share code, notes, and snippets.

@ethanhs
Created May 24, 2017 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethanhs/4a06b4e9b81caebe481ab983472b9f7a to your computer and use it in GitHub Desktop.
Save ethanhs/4a06b4e9b81caebe481ab983472b9f7a to your computer and use it in GitHub Desktop.
total runtime: 116.39472845223841 sec
317052 function calls (313012 primitive calls) in 116.395 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 116.395 116.395 <string>:1(<module>)
1 0.001 0.001 0.012 0.012 __init__.py:120(dump)
2 0.000 0.000 0.001 0.001 __init__.py:274(load)
2 0.000 0.000 0.001 0.000 __init__.py:302(loads)
6 0.000 0.000 0.000 0.000 _bootlocale.py:11(getpreferredencoding)
4 0.000 0.000 0.000 0.000 _collections_abc.py:657(get)
1 0.000 0.000 0.000 0.000 _collections_abc.py:672(keys)
1 0.000 0.000 0.000 0.000 _collections_abc.py:698(__init__)
80 0.000 0.000 0.000 0.000 _collections_abc.py:719(__iter__)
6 0.000 0.000 0.000 0.000 _weakrefset.py:36(__init__)
2 0.000 0.000 0.000 0.000 abc.py:132(__new__)
2 0.000 0.000 0.000 0.000 abc.py:135(<setcomp>)
1 0.000 0.000 0.000 0.000 codecs.py:185(__init__)
5 0.000 0.000 0.000 0.000 codecs.py:259(__init__)
1 0.000 0.000 0.000 0.000 context.py:40(cpu_count)
3698 0.001 0.000 0.003 0.000 cp1252.py:18(encode)
13 0.000 0.000 0.000 0.000 cp1252.py:22(decode)
2 0.000 0.000 0.001 0.000 decoder.py:334(decode)
2 0.001 0.000 0.001 0.000 decoder.py:345(raw_decode)
1 0.000 0.000 0.000 0.000 encoder.py:104(__init__)
1 0.000 0.000 0.000 0.000 encoder.py:204(iterencode)
456 0.001 0.000 0.001 0.000 encoder.py:223(floatstr)
1 0.000 0.000 0.000 0.000 encoder.py:259(_make_iterencode)
3699 0.001 0.000 0.005 0.000 encoder.py:277(_iterencode_list)
7368/3696 0.002 0.000 0.004 0.000 encoder.py:333(_iterencode_dict)
918 0.000 0.000 0.000 0.000 encoder.py:353(<lambda>)
3699 0.001 0.000 0.005 0.000 encoder.py:412(_iterencode)
402 0.000 0.000 0.001 0.000 enum.py:265(__call__)
402 0.000 0.000 0.000 0.000 enum.py:515(__new__)
17 0.000 0.000 0.000 0.000 enum.py:795(__or__)
184 0.000 0.000 0.001 0.000 enum.py:801(__and__)
456 0.005 0.000 0.010 0.000 functools.py:44(update_wrapper)
456 0.001 0.000 0.001 0.000 functools.py:74(wraps)
712 0.001 0.000 0.002 0.000 genericpath.py:117(_splitext)
2226 0.004 0.000 0.006 0.000 ntpath.py:121(splitdrive)
712 0.001 0.000 0.002 0.000 ntpath.py:222(splitext)
102 0.000 0.000 0.003 0.000 ntpath.py:247(islink)
153 0.002 0.000 0.004 0.000 ntpath.py:471(normpath)
153 0.000 0.000 0.005 0.000 ntpath.py:538(abspath)
1018 0.003 0.000 0.008 0.000 ntpath.py:74(join)
419/138 0.002 0.000 0.013 0.000 os.py:277(walk)
83 0.000 0.000 0.000 0.000 os.py:664(__getitem__)
80 0.000 0.000 0.000 0.000 os.py:687(__iter__)
83 0.000 0.000 0.000 0.000 os.py:726(check_str)
83 0.000 0.000 0.000 0.000 os.py:732(encodekey)
4 0.000 0.000 0.000 0.000 os.py:758(getenv)
1224 0.002 0.000 0.003 0.000 random.py:222(_randbelow)
1224 0.002 0.000 0.005 0.000 random.py:252(choice)
2 0.000 0.000 0.000 0.000 random.py:87(__init__)
2 0.000 0.000 0.000 0.000 random.py:96(seed)
456 0.001 0.000 0.005 0.000 re.py:179(search)
304 0.001 0.000 0.007 0.000 re.py:184(sub)
1 0.000 0.000 0.000 0.000 re.py:231(compile)
761 0.001 0.000 0.005 0.000 re.py:286(_compile)
1 0.000 0.000 0.000 0.000 re.py:314(_compile_repl)
152 0.001 0.000 0.001 0.000 re.py:324(_subx)
125 0.000 0.000 0.001 0.000 re.py:330(filter)
1 0.000 0.000 0.000 0.000 runtests.py:105(add_pytest)
1 0.000 0.000 0.000 0.000 runtests.py:12(get_versions)
36 0.000 0.000 0.000 0.000 runtests.py:125(add_python_mod)
90 0.000 0.000 0.002 0.000 runtests.py:138(add_python_string)
1 0.000 0.000 0.000 0.000 runtests.py:158(add_flake8)
1 0.000 0.000 0.000 0.000 runtests.py:171(add_basic)
1 0.000 0.000 0.000 0.000 runtests.py:181(add_selftypecheck)
25 0.000 0.000 0.018 0.001 runtests.py:187(find_files)
25 0.001 0.000 0.018 0.001 runtests.py:188(<listcomp>)
712 0.001 0.000 0.003 0.000 runtests.py:194(file_to_module)
1 0.000 0.000 0.005 0.005 runtests.py:201(add_imports)
1 0.000 0.000 0.000 0.000 runtests.py:21(<listcomp>)
1 0.000 0.000 0.000 0.000 runtests.py:221(add_pytest)
1 0.000 0.000 0.002 0.002 runtests.py:225(add_myunit)
1 0.001 0.001 0.003 0.003 runtests.py:241(add_pythoneval)
1 0.000 0.000 0.000 0.000 runtests.py:265(add_cmdline)
1 0.000 0.000 0.016 0.016 runtests.py:271(add_stubs)
1 0.000 0.000 0.003 0.003 runtests.py:288(add_stdlibsamples)
1 0.000 0.000 0.001 0.001 runtests.py:303(add_samples)
1 0.000 0.000 0.000 0.000 runtests.py:338(sanity)
1 0.000 0.000 116.395 116.395 runtests.py:353(main)
1 0.000 0.000 0.000 0.000 runtests.py:432(<listcomp>)
1 0.000 0.000 0.000 0.000 runtests.py:45(__init__)
4 0.000 0.000 0.000 0.000 runtests.py:62(prepend_path)
4 0.000 0.000 0.000 0.000 runtests.py:64(<listcomp>)
152 0.000 0.000 0.000 0.000 runtests.py:73(allow)
304 0.000 0.000 0.000 0.000 runtests.py:74(<genexpr>)
152 0.000 0.000 0.000 0.000 runtests.py:75(<genexpr>)
24 0.000 0.000 0.001 0.000 runtests.py:83(add_mypy_cmd)
20 0.000 0.000 0.001 0.000 runtests.py:91(add_mypy)
2 0.000 0.000 0.000 0.000 runtests.py:94(add_mypy_modules)
600 0.000 0.000 0.000 0.000 runtests.py:96(<genexpr>)
2 0.000 0.000 0.000 0.000 runtests.py:99(add_mypy_package)
6 0.000 0.000 0.000 0.000 sre_compile.py:223(_compile_charset)
6 0.000 0.000 0.000 0.000 sre_compile.py:250(_optimize_charset)
15 0.000 0.000 0.000 0.000 sre_compile.py:388(_simple)
2 0.000 0.000 0.000 0.000 sre_compile.py:393(_generate_overlap_table)
7/6 0.000 0.000 0.000 0.000 sre_compile.py:414(_get_literal_prefix)
4 0.000 0.000 0.000 0.000 sre_compile.py:441(_get_charset_prefix)
6 0.000 0.000 0.000 0.000 sre_compile.py:482(_compile_info)
12 0.000 0.000 0.000 0.000 sre_compile.py:539(isstring)
6 0.000 0.000 0.002 0.000 sre_compile.py:542(_code)
6 0.000 0.000 0.003 0.001 sre_compile.py:557(compile)
31/6 0.000 0.000 0.001 0.000 sre_compile.py:64(_compile)
31 0.000 0.000 0.000 0.000 sre_parse.py:111(__init__)
45 0.000 0.000 0.000 0.000 sre_parse.py:159(__len__)
129 0.000 0.000 0.000 0.000 sre_parse.py:163(__getitem__)
15 0.000 0.000 0.000 0.000 sre_parse.py:167(__setitem__)
124 0.000 0.000 0.000 0.000 sre_parse.py:171(append)
56/31 0.000 0.000 0.000 0.000 sre_parse.py:173(getwidth)
7 0.000 0.000 0.000 0.000 sre_parse.py:223(__init__)
187 0.000 0.000 0.000 0.000 sre_parse.py:232(__next)
66 0.000 0.000 0.000 0.000 sre_parse.py:248(match)
162 0.000 0.000 0.000 0.000 sre_parse.py:253(get)
48 0.000 0.000 0.000 0.000 sre_parse.py:285(tell)
1 0.000 0.000 0.000 0.000 sre_parse.py:294(_class_escape)
3 0.000 0.000 0.000 0.000 sre_parse.py:342(_escape)
16/6 0.000 0.000 0.001 0.000 sre_parse.py:407(_parse_sub)
16/6 0.000 0.000 0.001 0.000 sre_parse.py:469(_parse)
6 0.000 0.000 0.000 0.000 sre_parse.py:76(__init__)
32 0.000 0.000 0.000 0.000 sre_parse.py:81(groups)
6 0.000 0.000 0.000 0.000 sre_parse.py:829(fix_flags)
10 0.000 0.000 0.000 0.000 sre_parse.py:84(opengroup)
6 0.000 0.000 0.002 0.000 sre_parse.py:845(parse)
1 0.000 0.000 0.000 0.000 sre_parse.py:877(parse_template)
1 0.000 0.000 0.000 0.000 sre_parse.py:886(addgroup)
10 0.000 0.000 0.000 0.000 sre_parse.py:96(closegroup)
125 0.001 0.000 0.001 0.000 sre_parse.py:964(expand_template)
53163 0.145 0.000 0.253 0.000 subprocess.py:1013(_internal_poll)
152 0.000 0.000 0.000 0.000 subprocess.py:1030(wait)
912 0.001 0.000 0.001 0.000 subprocess.py:179(Close)
152 0.000 0.000 0.000 0.000 subprocess.py:203(_cleanup)
152 0.011 0.000 0.015 0.000 subprocess.py:422(list2cmdline)
152 0.002 0.000 0.318 0.002 subprocess.py:586(__init__)
53163 0.064 0.000 0.318 0.000 subprocess.py:845(poll)
152 0.002 0.000 0.010 0.000 subprocess.py:871(_get_handles)
456 0.001 0.000 0.002 0.000 subprocess.py:943(_make_inheritable)
152 0.003 0.000 0.305 0.002 subprocess.py:952(_execute_child)
152 0.001 0.000 0.002 0.000 tempfile.py:118(_sanitize_params)
153 0.000 0.000 0.001 0.000 tempfile.py:146(rng)
153 0.001 0.000 0.007 0.000 tempfile.py:157(__next__)
153 0.001 0.000 0.005 0.000 tempfile.py:160(<listcomp>)
1 0.000 0.000 0.000 0.000 tempfile.py:163(_candidate_tempdir_list)
1 0.000 0.000 0.001 0.001 tempfile.py:188(_get_default_tempdir)
152 0.000 0.000 0.000 0.000 tempfile.py:235(_get_candidate_names)
152 0.002 0.000 0.074 0.000 tempfile.py:249(_mkstemp_inner)
152 0.000 0.000 0.001 0.000 tempfile.py:289(gettempdir)
152 0.000 0.000 0.000 0.000 tempfile.py:424(__init__)
152 0.000 0.000 0.001 0.000 tempfile.py:467(__init__)
456 0.004 0.000 0.016 0.000 tempfile.py:473(__getattr__)
456 0.001 0.000 0.007 0.000 tempfile.py:481(func_wrapper)
152 0.002 0.000 0.085 0.001 tempfile.py:522(NamedTemporaryFile)
152 0.000 0.000 0.000 0.000 tempfile.py:97(_infer_return_type)
2 0.000 0.000 0.000 0.000 typing.py:1016(_abc_negative_cache)
2 0.000 0.000 0.000 0.000 typing.py:1030(_abc_negative_cache_version)
2 0.000 0.000 0.000 0.000 typing.py:1074(_subs_tree)
5 0.000 0.000 0.000 0.000 typing.py:1080(__eq__)
5 0.000 0.000 0.000 0.000 typing.py:1087(__hash__)
2 0.000 0.000 0.000 0.000 typing.py:1090(__getitem__)
6 0.000 0.000 0.000 0.000 typing.py:1098(<genexpr>)
26 0.000 0.000 0.000 0.000 typing.py:1161(__setattr__)
1 0.000 0.000 0.000 0.000 typing.py:1236(__getitem__)
4 0.000 0.000 0.000 0.000 typing.py:1251(<genexpr>)
2 0.000 0.000 0.000 0.000 typing.py:128(__new__)
2 0.000 0.000 0.000 0.000 typing.py:134(__init__)
1 0.000 0.000 0.000 0.000 typing.py:180(_get_type_vars)
2 0.000 0.000 0.000 0.000 typing.py:331(_get_type_vars)
2 0.000 0.000 0.000 0.000 typing.py:337(_type_vars)
7 0.000 0.000 0.000 0.000 typing.py:349(_type_check)
4 0.000 0.000 0.000 0.000 typing.py:523(_replace_arg)
2 0.000 0.000 0.000 0.000 typing.py:550(_subs_tree)
1 0.000 0.000 0.000 0.000 typing.py:624(_check_generic)
3/2 0.000 0.000 0.000 0.000 typing.py:646(inner)
12 0.000 0.000 0.000 0.000 typing.py:822(_gorg)
1 0.000 0.000 0.000 0.000 typing.py:830(_geqv)
2 0.000 0.000 0.000 0.000 typing.py:845(_next_in_mro)
2 0.000 0.000 0.000 0.000 typing.py:859(_make_subclasshook)
2 0.000 0.000 0.000 0.000 typing.py:889(_no_slots_copy)
2 0.000 0.000 0.000 0.000 typing.py:915(__new__)
2 0.000 0.000 0.000 0.000 typing.py:924(<genexpr>)
7 0.000 0.000 0.000 0.000 typing.py:964(<genexpr>)
4 0.000 0.000 0.000 0.000 typing.py:967(<genexpr>)
6 0.000 0.000 0.000 0.000 typing.py:968(<genexpr>)
6 0.000 0.000 0.000 0.000 typing.py:975(<genexpr>)
1 0.000 0.000 0.000 0.000 waiter.py:116(__init__)
2 0.000 0.000 0.002 0.001 waiter.py:144(load_log_file)
152 0.001 0.000 0.003 0.000 waiter.py:156(add)
11628 0.001 0.000 0.001 0.000 waiter.py:158(<genexpr>)
152 0.001 0.000 0.485 0.003 waiter.py:165(_start_next)
152 0.001 0.000 0.008 0.000 waiter.py:182(_record_time)
152 0.231 0.002 115.716 0.761 waiter.py:190(_poll_current)
152 0.003 0.000 115.849 0.762 waiter.py:202(_wait_next)
1 0.000 0.000 0.003 0.003 waiter.py:257(_report_task_failure)
1 0.005 0.005 116.365 116.365 waiter.py:265(run)
152 0.000 0.000 0.000 0.000 waiter.py:27(__init__)
152 0.000 0.000 0.000 0.000 waiter.py:273(avg)
152 0.000 0.000 0.000 0.000 waiter.py:274(<listcomp>)
1 0.000 0.000 0.000 0.000 waiter.py:285(<dictcomp>)
456 0.000 0.000 0.000 0.000 waiter.py:285(<genexpr>)
152 0.000 0.000 0.000 0.000 waiter.py:288(sort_function)
2 0.000 0.000 0.000 0.000 waiter.py:358(<genexpr>)
152 0.003 0.000 0.405 0.003 waiter.py:36(start)
152 0.001 0.000 0.006 0.000 waiter.py:368(parse_test_stats_from_output)
152 0.000 0.000 0.001 0.000 waiter.py:43(wait)
152 0.003 0.000 0.021 0.000 waiter.py:49(read_output)
152 0.000 0.000 0.000 0.000 waiter.py:55(elapsed_time)
1 0.000 0.000 0.000 0.000 waiter.py:66(__init__)
152 0.001 0.000 0.078 0.001 waiter.py:75(start)
152 0.001 0.000 0.092 0.001 waiter.py:79(stop)
305 0.002 0.000 0.166 0.001 waiter.py:87(message)
304 0.002 0.000 0.168 0.001 waiter.py:92(update)
1 0.000 0.000 0.000 0.000 waiter.py:98(clear)
2 0.000 0.000 0.000 0.000 {built-in method __new__ of type object at 0x00000000668B3430}
13 0.000 0.000 0.000 0.000 {built-in method _codecs.charmap_decode}
3698 0.001 0.000 0.001 0.000 {built-in method _codecs.charmap_encode}
918 0.000 0.000 0.000 0.000 {built-in method _json.encode_basestring_ascii}
6 0.000 0.000 0.000 0.000 {built-in method _locale._getdefaultlocale}
6 0.000 0.000 0.000 0.000 {built-in method _sre.compile}
102 0.000 0.000 0.000 0.000 {built-in method _stat.S_ISLNK}
152 0.000 0.000 0.000 0.000 {built-in method _thread.allocate_lock}
608 0.001 0.000 0.001 0.000 {built-in method _winapi.CloseHandle}
152 0.284 0.002 0.284 0.002 {built-in method _winapi.CreateProcess}
456 0.001 0.000 0.001 0.000 {built-in method _winapi.DuplicateHandle}
912 0.000 0.000 0.000 0.000 {built-in method _winapi.GetCurrentProcess}
152 0.000 0.000 0.000 0.000 {built-in method _winapi.GetExitCodeProcess}
152 0.000 0.000 0.000 0.000 {built-in method _winapi.GetStdHandle}
53163 0.108 0.000 0.108 0.000 {built-in method _winapi.WaitForSingleObject}
2 0.000 0.000 0.000 0.000 {built-in method builtins.all}
307 0.000 0.000 0.000 0.000 {built-in method builtins.any}
1 0.000 0.000 116.395 116.395 {built-in method builtins.exec}
3842 0.004 0.000 0.004 0.000 {built-in method builtins.getattr}
614 0.001 0.000 0.001 0.000 {built-in method builtins.hasattr}
2 0.000 0.000 0.000 0.000 {built-in method builtins.hash}
10 0.000 0.000 0.000 0.000 {built-in method builtins.id}
8795 0.002 0.000 0.002 0.000 {built-in method builtins.isinstance}
6843/6828 0.001 0.000 0.001 0.000 {built-in method builtins.len}
712 0.000 0.000 0.000 0.000 {built-in method builtins.max}
68 0.000 0.000 0.000 0.000 {built-in method builtins.min}
1617 0.004 0.000 0.011 0.000 {built-in method builtins.next}
107 0.000 0.000 0.000 0.000 {built-in method builtins.ord}
7 0.011 0.002 0.011 0.002 {built-in method builtins.print}
2280 0.001 0.000 0.001 0.000 {built-in method builtins.setattr}
12 0.001 0.000 0.001 0.000 {built-in method builtins.sorted}
152 0.000 0.000 0.000 0.000 {built-in method builtins.sum}
159 0.007 0.000 0.007 0.000 {built-in method io.open}
152 0.000 0.000 0.000 0.000 {built-in method msvcrt.get_osfhandle}
153 0.000 0.000 0.000 0.000 {built-in method nt._getfullpathname}
10 0.000 0.000 0.000 0.000 {built-in method nt._isdir}
1 0.000 0.000 0.000 0.000 {built-in method nt.close}
1 0.000 0.000 0.000 0.000 {built-in method nt.cpu_count}
4389 0.001 0.000 0.001 0.000 {built-in method nt.fspath}
2 0.000 0.000 0.000 0.000 {built-in method nt.getcwd}
153 0.000 0.000 0.000 0.000 {built-in method nt.getpid}
102 0.003 0.000 0.003 0.000 {built-in method nt.lstat}
153 0.057 0.000 0.057 0.000 {built-in method nt.open}
127 0.003 0.000 0.003 0.000 {built-in method nt.scandir}
1 0.000 0.000 0.000 0.000 {built-in method nt.unlink}
1 0.000 0.000 0.000 0.000 {built-in method sys.exit}
306 0.000 0.000 0.000 0.000 {built-in method time.perf_counter}
8592 115.167 0.013 115.167 0.013 {built-in method time.sleep}
2 0.000 0.000 0.000 0.000 {function Random.seed at 0x000001ACAD8BCD08}
2 0.000 0.000 0.000 0.000 {method 'acquire' of '_thread.lock' objects}
927 0.000 0.000 0.000 0.000 {method 'add' of 'set' objects}
29163 0.004 0.000 0.004 0.000 {method 'append' of 'list' objects}
1224 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects}
152 0.000 0.000 0.000 0.000 {method 'decode' of 'bytes' objects}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
4 0.000 0.000 0.000 0.000 {method 'end' of '_sre.SRE_Match' objects}
1701 0.000 0.000 0.000 0.000 {method 'endswith' of 'str' objects}
1190 0.000 0.000 0.000 0.000 {method 'extend' of 'list' objects}
152 0.000 0.000 0.000 0.000 {method 'fileno' of '_io.BufferedRandom' objects}
20 0.000 0.000 0.000 0.000 {method 'find' of 'bytearray' objects}
309 0.001 0.000 0.001 0.000 {method 'flush' of '_io.TextIOWrapper' objects}
633 0.000 0.000 0.000 0.000 {method 'get' of 'dict' objects}
2057 0.001 0.000 0.001 0.000 {method 'getrandbits' of '_random.Random' objects}
297 0.000 0.000 0.000 0.000 {method 'group' of '_sre.SRE_Match' objects}
1351 0.000 0.000 0.000 0.000 {method 'is_dir' of 'nt.DirEntry' objects}
17 0.000 0.000 0.000 0.000 {method 'items' of 'dict' objects}
587 0.001 0.000 0.001 0.000 {method 'join' of 'str' objects}
153 0.000 0.000 0.000 0.000 {method 'lstrip' of 'str' objects}
2252 0.001 0.000 0.001 0.000 {method 'match' of '_sre.SRE_Pattern' objects}
152 0.000 0.000 0.000 0.000 {method 'pop' of 'dict' objects}
152 0.006 0.000 0.006 0.000 {method 'read' of '_io.BufferedRandom' objects}
2 0.000 0.000 0.000 0.000 {method 'read' of '_io.TextIOWrapper' objects}
2 0.000 0.000 0.000 0.000 {method 'release' of '_thread.lock' objects}
152 0.000 0.000 0.000 0.000 {method 'remove' of 'set' objects}
3088 0.001 0.000 0.001 0.000 {method 'replace' of 'str' objects}
2136 0.000 0.000 0.000 0.000 {method 'rfind' of 'str' objects}
456 0.001 0.000 0.001 0.000 {method 'search' of '_sre.SRE_Pattern' objects}
152 0.001 0.000 0.001 0.000 {method 'seek' of '_io.BufferedRandom' objects}
153 0.000 0.000 0.000 0.000 {method 'split' of 'str' objects}
1595 0.001 0.000 0.001 0.000 {method 'startswith' of 'str' objects}
304 0.003 0.000 0.005 0.000 {method 'sub' of '_sre.SRE_Pattern' objects}
458 0.000 0.000 0.000 0.000 {method 'update' of 'dict' objects}
83 0.000 0.000 0.000 0.000 {method 'upper' of 'str' objects}
1 0.000 0.000 0.000 0.000 {method 'write' of '_io.BufferedWriter' objects}
4006 0.168 0.000 0.171 0.000 {method 'write' of '_io.TextIOWrapper' objects}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment