Skip to content

Instantly share code, notes, and snippets.

@kaplun
Created May 12, 2016 14:04
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 kaplun/8f768b5104feabc1a8621f3cfb94167a to your computer and use it in GitHub Desktop.
Save kaplun/8f768b5104feabc1a8621f3cfb94167a to your computer and use it in GitHub Desktop.
%prun of marc_create_record
12868110 function calls (12126723 primitive calls) in 922.833 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
7523 919.223 0.122 921.309 0.122 bd1xx.py:32(authors)
9697202 1.284 0.000 1.284 0.000 {method 'append' of 'list' objects}
742212/1230 0.525 0.000 0.790 0.001 utils.py:97(strip_empty_values)
1411183 0.266 0.000 0.266 0.000 {isinstance}
8689 0.224 0.000 0.232 0.000 utils.py:115(remove_duplicates_from_list)
173892 0.198 0.000 0.198 0.000 {_codecs.utf_8_decode}
7523 0.168 0.000 0.461 0.000 bd1xx.py:37(get_value)
100 0.139 0.001 922.658 9.227 overdo.py:98(do)
13368 0.126 0.000 0.126 0.000 {method 'match' of '_sre.SRE_Pattern' objects}
173892 0.125 0.000 0.323 0.000 utf_8.py:15(decode)
133417 0.119 0.000 0.209 0.000 utils.py:274(get)
133529 0.083 0.000 0.089 0.000 utils.py:281(__getitem__)
11555 0.066 0.000 0.191 0.000 overdo.py:54(query)
11667 0.057 0.000 0.057 0.000 utils.py:360(iteritems)
13230 0.026 0.000 0.026 0.000 {getattr}
36518 0.023 0.000 0.041 0.000 utils.py:83(force_list)
115930 0.022 0.000 0.022 0.000 {method 'items' of 'dict' objects}
7523 0.020 0.000 0.020 0.000 utils.py:86(create_profile_url)
16654 0.019 0.000 0.070 0.000 utils.py:147(get_record_ref)
1130 0.013 0.000 0.035 0.000 bd90x99x.py:38(get_value)
1 0.011 0.011 922.833 922.833 <string>:1(<module>)
3626 0.007 0.000 0.013 0.000 local.py:160(top)
66121/66118 0.006 0.000 0.006 0.000 {len}
3626 0.006 0.000 0.029 0.000 local.py:296(_get_current_object)
3626 0.006 0.000 0.019 0.000 globals.py:48(_find_app)
1816 0.006 0.000 0.010 0.000 re.py:230(_compile)
3626 0.005 0.000 0.006 0.000 local.py:68(__getattr__)
7523 0.004 0.000 0.004 0.000 {method 'startswith' of 'str' objects}
1813 0.004 0.000 0.026 0.000 local.py:322(__bool__)
3693 0.004 0.000 0.004 0.000 {method 'format' of 'str' objects}
1462 0.004 0.000 0.020 0.000 utils.py:48(wrapper)
1130 0.003 0.000 0.893 0.001 bd90x99x.py:33(references)
1813 0.003 0.000 0.010 0.000 re.py:138(match)
3626 0.003 0.000 0.003 0.000 {hasattr}
13247 0.003 0.000 0.003 0.000 {method 'get' of 'dict' objects}
1813 0.003 0.000 0.011 0.000 local.py:340(__getattr__)
780 0.002 0.000 0.003 0.000 utils.py:130(remove_duplicates_from_list_of_dicts)
1496 0.002 0.000 0.022 0.000 utils.py:61(wrapper)
271 0.002 0.000 0.004 0.000 bd84188x.py:30(urls)
322 0.002 0.000 0.004 0.000 bd1xx.py:218(positions)
433 0.001 0.000 0.004 0.000 processors.py:57(_collection_in_record)
260 0.001 0.000 0.004 0.000 base.py:206(collections)
5089 0.001 0.000 0.001 0.000 utils.py:51(<genexpr>)
3626 0.001 0.000 0.001 0.000 {thread.get_ident}
175 0.001 0.000 0.002 0.000 bd1xx.py:393(experiments)
134/67 0.001 0.000 0.003 0.000 sre_parse.py:395(_parse)
137/3 0.001 0.000 0.001 0.000 sre_compile.py:64(_compile)
260 0.001 0.000 0.002 0.000 base.py:217(get_value)
70/3 0.001 0.000 0.003 0.001 sre_parse.py:317(_parse_sub)
1023 0.001 0.000 0.001 0.000 sre_parse.py:193(__next)
1462 0.001 0.000 0.001 0.000 six.py:598(iteritems)
164 0.001 0.000 0.001 0.000 bd6xx.py:132(get_value)
164 0.000 0.000 0.003 0.000 bd6xx.py:127(thesaurus_terms)
100 0.000 0.000 922.821 9.228 tasks.py:364(create_record)
3116 0.000 0.000 0.000 0.000 collections.py:479(__missing__)
69 0.000 0.000 0.001 0.000 bd1xx.py:60(name)
100 0.000 0.000 922.658 9.227 schema.py:31(do)
137/3 0.000 0.000 0.000 0.000 sre_parse.py:151(getwidth)
100 0.000 0.000 0.001 0.000 bd1xx.py:294(field_categories)
2205 0.000 0.000 0.000 0.000 {method 'add' of 'set' objects}
104 0.000 0.000 0.000 0.000 collections.py:458(__init__)
1564 0.000 0.000 0.000 0.000 {method 'extend' of 'list' objects}
123 0.000 0.000 0.001 0.000 bd1xx.py:323(source)
171 0.000 0.000 0.001 0.000 bd1xx.py:127(ids)
98 0.000 0.000 0.000 0.000 base.py:160(spires_sysnos)
1462 0.000 0.000 0.000 0.000 {method 'iteritems' of 'dict' objects}
16 0.000 0.000 0.001 0.000 bd76x78x.py:32(publication_info)
1383 0.000 0.000 0.000 0.000 {method 'lower' of 'str' objects}
688 0.000 0.000 0.001 0.000 sre_parse.py:212(get)
37 0.000 0.000 0.001 0.000 bd01x09x.py:134(report_numbers)
37 0.000 0.000 0.000 0.000 bd20x24x.py:84(get_value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment