Skip to content

Instantly share code, notes, and snippets.

@orf
Created March 13, 2013 15:16
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 orf/5153108 to your computer and use it in GitHub Desktop.
Save orf/5153108 to your computer and use it in GitHub Desktop.
2306 function calls (2297 primitive calls) in 0.003 seconds
Ordered by: call count
ncalls tottime percall cumtime percall filename:lineno(function)
497 0.000 0.000 0.000 0.000 {isinstance}
143 0.000 0.000 0.000 0.000 {method 'append' of 'list' objects}
125 0.000 0.000 0.000 0.000 {getattr}
95 0.000 0.000 0.000 0.000 __init__.py:50(__getattr__)
87 0.000 0.000 0.000 0.000 {hasattr}
84/83 0.000 0.000 0.000 0.000 encoding.py:83(force_text)
83 0.000 0.000 0.000 0.000 functional.py:111(__promise__)
57 0.000 0.000 0.000 0.000 {setattr}
53 0.000 0.000 0.000 0.000 {method 'startswith' of 'unicode' objects}
42 0.000 0.000 0.000 0.000 {method 'replace' of 'unicode' objects}
39 0.000 0.000 0.000 0.000 {callable}
39 0.000 0.000 0.000 0.000 encoding.py:138(force_bytes)
38 0.000 0.000 0.000 0.000 {len}
36 0.000 0.000 0.000 0.000 formats.py:71(get_format)
30 0.000 0.000 0.000 0.000 {method 'pop' of 'list' objects}
28 0.000 0.000 0.000 0.000 base.py:854(render)
27 0.000 0.000 0.000 0.000 base.py:336(next_token)
25 0.000 0.000 0.000 0.000 {method 'count' of 'unicode' objects}
25 0.000 0.000 0.000 0.000 base.py:156(__init__)
25 0.000 0.000 0.000 0.000 base.py:201(create_token)
24 0.000 0.000 0.000 0.000 safestring.py:104(mark_safe)
23 0.000 0.000 0.000 0.000 base.py:297(extend_nodelist)
23 0.000 0.000 0.000 0.000 {iter}
21 0.000 0.000 0.000 0.000 base.py:724(resolve)
21 0.000 0.000 0.000 0.000 base.py:575(resolve)
20 0.000 0.000 0.000 0.000 base.py:745(_resolve_lookup)
20 0.000 0.000 0.000 0.000 context.py:52(__getitem__)
19 0.000 0.000 0.000 0.000 {method 'itervalues' of 'dict' objects}
19 0.000 0.000 0.000 0.000 six.py:248(itervalues)
19 0.000 0.000 0.001 0.000 functional.py:188(wrapper)
18 0.000 0.000 0.000 0.000 {method 'split' of 'unicode' objects}
18 0.000 0.000 0.001 0.000 base.py:857(_render_value_in_context)
18 0.000 0.000 0.000 0.000 formats.py:149(localize)
18 0.000 0.000 0.000 0.000 timezone.py:210(template_localtime)
18 0.000 0.000 0.001 0.000 base.py:879(render)
14/11 0.000 0.000 0.002 0.000 base.py:843(render_node)
13 0.000 0.000 0.000 0.000 trans_null.py:25()
13 0.000 0.000 0.000 0.000 {method 'group' of '_sre.SRE_Match' objects}
13 0.000 0.000 0.000 0.000 base.py:847(__init__)
13 0.000 0.000 0.000 0.000 __init__.py:113(get_language)
12 0.000 0.000 0.000 0.000 formats.py:129(number_format)
12 0.000 0.000 0.000 0.000 {method 'strip' of 'unicode' objects}
12 0.000 0.000 0.000 0.000 numberformat.py:6(format)
11 0.000 0.000 0.000 0.000 {method 'decode' of 'str' objects}
11 0.000 0.000 0.000 0.000 {_codecs.utf_8_decode}
11 0.000 0.000 0.000 0.000 {method 'finditer' of '_sre.SRE_Pattern' objects}
11 0.000 0.000 0.000 0.000 utf_8.py:15(decode)
9 0.000 0.000 0.000 0.000 base.py:531(__init__)
9 0.000 0.000 0.000 0.000 {method 'end' of '_sre.SRE_Match' objects}
9 0.000 0.000 0.000 0.000 {method 'start' of '_sre.SRE_Match' objects}
9 0.000 0.000 0.000 0.000 text.py:399(unescape_string_literal)
9 0.000 0.000 0.000 0.000 base.py:349(compile_filter)
9 0.000 0.000 0.000 0.000 base.py:680(__init__)
8 0.000 0.000 0.000 0.000 {method 'find' of 'unicode' objects}
7 0.000 0.000 0.000 0.000 html.py:39(escape)
7 0.000 0.000 0.000 0.000 {method 'update' of 'dict' objects}
7 0.000 0.000 0.000 0.000 {method 'join' of 'unicode' objects}
6 0.000 0.000 0.000 0.000 base.py:873(__init__)
6 0.000 0.000 0.000 0.000 text.py:355(smart_split)
6 0.000 0.000 0.000 0.000 base.py:291(create_variable_node)
5 0.000 0.000 0.000 0.000 {method 'get' of 'dict' objects}
5 0.000 0.000 0.000 0.000 context.py:48(__setitem__)
4 0.000 0.000 0.000 0.000 base.py:309(enter_command)
4 0.000 0.000 0.000 0.000 base.py:312(exit_command)
3/1 0.000 0.000 0.001 0.001 base.py:241(parse)
3 0.000 0.000 0.000 0.000 {method 'encode' of 'unicode' objects}
3 0.000 0.000 0.000 0.000 context_processors.py:23(_get_val)
3/1 0.000 0.000 0.002 0.002 base.py:826(render)
3 0.000 0.000 0.000 0.000 {method 'keys' of 'dict' objects}
3 0.000 0.000 0.000 0.000 csrf.py:42(get_token)
3 0.000 0.000 0.000 0.000 base.py:294(create_nodelist)
3 0.000 0.000 0.000 0.000 context.py:43(pop)
3 0.000 0.000 0.000 0.000 {method 'items' of 'dict' objects}
3/2 0.000 0.000 0.000 0.000 functional.py:129(__text_cast)
3 0.000 0.000 0.000 0.000 ntpath.py:122(splitdrive)
3 0.000 0.000 0.000 0.000 {method 'items' of 'dictproxy' objects}
3 0.000 0.000 0.000 0.000 base.py:345(add_library)
3 0.000 0.000 0.000 0.000 encoding.py:62(smart_text)
2 0.000 0.000 0.000 0.000 {method 'lower' of 'unicode' objects}
2 0.000 0.000 0.000 0.000 {method 'mro' of 'type' objects}
2 0.000 0.000 0.000 0.000 loader.py:82(make_origin)
2 0.000 0.000 0.000 0.000 re.py:226(_compile)
2 0.000 0.000 0.000 0.000 ntpath.py:42(normcase)
2 0.000 0.000 0.000 0.000 urllib.py:1231(quote)
2 0.000 0.000 0.000 0.000 {method 'split' of '_sre.SRE_Pattern' objects}
2 0.000 0.000 0.000 0.000 {nt._getfullpathname}
2 0.000 0.000 0.000 0.000 {method 'rstrip' of 'str' objects}
2 0.000 0.000 0.000 0.000 {next}
2 0.000 0.000 0.000 0.000 ntpath.py:398(normpath)
2 0.000 0.000 0.000 0.000 base.py:167(split_contents)
2 0.000 0.000 0.000 0.000 {method 'insert' of 'list' objects}
2 0.000 0.000 0.000 0.000 filesystem.py:13(get_template_sources)
2 0.000 0.000 0.000 0.000 ntpath.py:466(abspath)
2 0.000 0.000 0.000 0.000 context.py:38(push)
2 0.000 0.000 0.000 0.000 functional.py:24(wrapper)
2 0.000 0.000 0.000 0.000 {method 'lstrip' of 'unicode' objects}
2 0.000 0.000 0.000 0.000 base.py:339(prepend_token)
2 0.000 0.000 0.000 0.000 smartif.py:178(next_token)
2 0.000 0.000 0.000 0.000 regex_helper.py:201(next_char)
1 0.000 0.000 0.002 0.002 base.py:133(_render)
1 0.000 0.000 0.000 0.000 {method 'reverse' of 'list' objects}
1 0.000 0.000 0.000 0.000 defaulttags.py:827(eval)
1 0.000 0.000 0.000 0.000 {open}
1 0.000 0.000 0.000 0.000 filesystem.py:33(load_template_source)
1 0.000 0.000 0.000 0.000 smartif.py:186(parse)
1 0.000 0.000 0.000 0.000 functional.py:83(__prepare_class__)
1 0.000 0.000 0.000 0.000 defaulttags.py:833(__init__)
1 0.000 0.000 0.001 0.001 base.py:144(compile_string)
1 0.000 0.000 0.000 0.000 functional.py:54(lazy)
1 0.000 0.000 0.000 0.000 functional.py:71(__init__)
1 0.000 0.000 0.000 0.000 defaulttags.py:1197(url)
1 0.000 0.000 0.000 0.000 {method 'read' of 'file' objects}
1 0.000 0.000 0.000 0.000 datastructures.py:344(getlist)
1 0.000 0.000 0.000 0.000 ntpath.py:63(join)
1 0.000 0.000 0.000 0.000 {method 'iteritems' of 'dict' objects}
1 0.000 0.000 0.001 0.001 base.py:116(__init__)
1 0.000 0.000 0.002 0.002 base.py:136(render)
1 0.000 0.000 0.000 0.000 base.py:189(tokenize)
1 0.000 0.000 0.000 0.000 urlresolvers.py:516(get_script_prefix)
1 0.000 0.000 0.000 0.000 defaulttags.py:113(__init__)
1 0.000 0.000 0.000 0.000 {method 'search' of '_sre.SRE_Pattern' objects}
1 0.000 0.000 0.001 0.001 loader.py:121(find_template)
1 0.000 0.000 0.000 0.000 smartif.py:153(__init__)
1 0.000 0.000 0.003 0.003 :1()
1 0.000 0.000 0.000 0.000 html.py:68(conditional_escape)
1 0.000 0.000 0.001 0.001 loader.py:45(load_template)
1 0.000 0.000 0.000 0.000 urlresolvers.py:293(reverse_dict)
1 0.000 0.000 0.000 0.000 defaulttags.py:272(render)
1 0.000 0.000 0.000 0.000 defaulttags.py:685(do_for)
1 0.000 0.000 0.000 0.000 defaulttags.py:600(csrf_token)
1 0.000 0.000 0.000 0.000 defaulttags.py:387(__init__)
1 0.000 0.000 0.000 0.000 context.py:69(__contains__)
1 0.000 0.000 0.000 0.000 {max}
1 0.000 0.000 0.000 0.000 smartif.py:194(expression)
1 0.000 0.000 0.000 0.000 html.py:77(format_html)
1 0.000 0.000 0.000 0.000 http.py:35(urlquote)
1 0.000 0.000 0.001 0.001 loader.py:42(__call__)
1 0.000 0.000 0.000 0.000 base.py:234(__init__)
1 0.000 0.000 0.000 0.000 regex_helper.py:290(flatten_result)
1 0.000 0.000 0.000 0.000 functional.py:135(__cast)
1 0.000 0.000 0.000 0.000 {dir}
1 0.000 0.000 0.000 0.000 {function __getitem__ at 0x026A91B0}
1 0.000 0.000 0.000 0.000 {map}
1 0.000 0.000 0.000 0.000 {method 'format' of 'unicode' objects}
1 0.000 0.000 0.000 0.000 six.py:252(iteritems)
1 0.000 0.000 0.000 0.000 functools.py:17(update_wrapper)
1 0.000 0.000 0.000 0.000 smartif.py:170(translate_token)
1 0.000 0.000 0.000 0.000 functional.py:171(__wrapper__)
1 0.000 0.000 0.000 0.000 urlresolvers.py:442(reverse)
1 0.000 0.000 0.000 0.000 context.py:63(has_key)
1 0.000 0.000 0.000 0.000 functools.py:39(wraps)
1 0.000 0.000 0.000 0.000 defaulttags.py:837(create_var)
1 0.000 0.000 0.000 0.000 smartif.py:131(nud)
1 0.000 0.000 0.000 0.000 base.py:183(__init__)
1 0.000 0.000 0.001 0.001 loader.py:152(get_template_from_string)
1 0.000 0.000 0.000 0.000 defaulttags.py:257(__init__)
1 0.000 0.000 0.001 0.001 defaulttags.py:45(render)
1 0.000 0.000 0.000 0.000 context.py:103(update)
1 0.000 0.000 0.000 0.000 _os.py:54(safe_join)
1 0.000 0.000 0.000 0.000 re.py:164(split)
1 0.000 0.000 0.000 0.000 functional.py:143(__eq__)
1 0.000 0.000 0.000 0.000 functional.py:62(__proxy__)
1 0.000 0.000 0.000 0.000 defaulttags.py:840(do_if)
1 0.000 0.000 0.000 0.000 functools.py:53(total_ordering)
1 0.000 0.000 0.000 0.000 defaulttags.py:820(__init__)
1 0.000 0.000 0.000 0.000 {range}
1 0.000 0.000 0.000 0.000 encoding.py:191(iri_to_uri)
1 0.000 0.000 0.001 0.001 defaulttags.py:134(render)
1 0.000 0.000 0.000 0.000 context.py:72(get)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
1 0.000 0.000 0.000 0.000 defaulttags.py:393(render)
1 0.000 0.000 0.000 0.000 ntpath.py:55(isabs)
1 0.000 0.000 0.003 0.003 loader.py:159(render_to_string)
1 0.000 0.000 0.000 0.000 urlresolvers.py:375(_reverse_with_prefix)
1 0.000 0.000 0.000 0.000 regex_helper.py:46(normalize)
1 0.000 0.000 0.000 0.000 urlresolvers.py:535(get_urlconf)
1 0.000 0.000 0.000 0.000 functional.py:114(__wrapper__)
1 0.000 0.000 0.001 0.001 loader.py:141(get_template)
1 0.000 0.000 0.000 0.000 re.py:139(search)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment