Skip to content

Instantly share code, notes, and snippets.

@karadaisy
Created September 5, 2014 17:52
Show Gist options
  • Save karadaisy/c2d69b7e5b2fc0845bbc to your computer and use it in GitHub Desktop.
Save karadaisy/c2d69b7e5b2fc0845bbc to your computer and use it in GitHub Desktop.
redwind profiling run
PATH: '/'
209894 function calls (208101 primitive calls) in 0.922 seconds
Ordered by: cumulative time, internal time
List reduced from 1025 to 60 due to restriction <60>
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.925 0.925 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/werkzeug/contrib/profiler.py:91(runapp)
1 0.000 0.000 0.925 0.925 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/flask/app.py:1787(wsgi_app)
1 0.000 0.000 0.921 0.921 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/flask/app.py:1463(full_dispatch_request)
1 0.000 0.000 0.916 0.916 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/flask/app.py:1441(dispatch_request)
1 0.003 0.003 0.916 0.916 ./redwind/controllers.py:439(index)
1 0.000 0.000 0.913 0.913 ./redwind/controllers.py:420(render_posts)
1 0.000 0.000 0.655 0.655 ./redwind/controllers.py:432(<listcomp>)
15 0.002 0.000 0.655 0.044 ./redwind/controllers.py:130(create_dpost)
15 0.001 0.000 0.359 0.024 ./redwind/controllers.py:925(markdown_filter)
63 0.004 0.000 0.181 0.003 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/bs4/__init__.py:80(__init__)
63 0.001 0.000 0.166 0.003 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/bs4/__init__.py:206(_feed)
63 0.001 0.000 0.165 0.003 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/bs4/builder/_lxml.py:221(feed)
42 0.000 0.000 0.163 0.004 ./redwind/controllers.py:152(<genexpr>)
27 0.003 0.000 0.162 0.006 ./redwind/controllers.py:335(create_dmention)
48 0.002 0.000 0.159 0.003 ./redwind/controllers.py:942(format_as_text)
63 0.018 0.000 0.152 0.002 {method 'feed' of 'lxml.etree._FeedParser' objects}
15 0.001 0.000 0.149 0.010 ./redwind/util.py:82(autolink)
15 0.000 0.000 0.147 0.010 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/markdown/__init__.py:396(markdown)
1952/1120 0.005 0.000 0.143 0.000 {method 'join' of 'str' objects}
1 0.000 0.000 0.130 0.130 ./redwind/models.py:515(load_posts)
15 0.002 0.000 0.126 0.008 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/markdown/__init__.py:253(convert)
1 0.000 0.000 0.105 0.105 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/flask/templating.py:115(render_template)
1 0.000 0.000 0.105 0.105 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/flask/templating.py:108(_render)
1 0.000 0.000 0.105 0.105 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/jinja2/environment.py:954(render)
474 0.001 0.000 0.104 0.000 /home/kmahan/redwind/redwind/templates/posts.html:5(root)
474 0.001 0.000 0.103 0.000 /home/kmahan/redwind/redwind/templates/base.html:5(root)
474 0.001 0.000 0.102 0.000 /home/kmahan/redwind/redwind/templates/skeleton.html:5(root)
131 0.004 0.000 0.100 0.001 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/flask/helpers.py:186(url_for)
606 0.017 0.000 0.092 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/bs4/builder/_lxml.py:126(start)
131 0.004 0.000 0.088 0.001 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/werkzeug/routing.py:1554(build)
465 0.001 0.000 0.085 0.000 /home/kmahan/redwind/redwind/templates/base.html:17(block_body)
15 0.000 0.000 0.081 0.005 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/markdown/extensions/fenced_code.py:110(run)
3 0.000 0.000 0.080 0.027 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/markdown/extensions/codehilite.py:72(hilite)
112 0.002 0.000 0.079 0.001 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/jinja2/runtime.py:166(call)
1 0.043 0.043 0.077 0.077 ./redwind/models.py:524(<listcomp>)
456 0.001 0.000 0.070 0.000 /home/kmahan/redwind/redwind/templates/posts.html:14(block_content)
282 0.002 0.000 0.069 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/bs4/element.py:1165(find_all)
282 0.009 0.000 0.068 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/bs4/element.py:478(_find_all)
606 0.008 0.000 0.066 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/bs4/__init__.py:324(handle_starttag)
435 0.003 0.000 0.066 0.000 /home/kmahan/redwind/redwind/templates/_post.html:5(root)
262/131 0.002 0.000 0.056 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/werkzeug/routing.py:1533(_partial_build)
3 0.000 0.000 0.055 0.018 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/__init__.py:78(highlight)
3 0.000 0.000 0.055 0.018 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/__init__.py:54(format)
3 0.000 0.000 0.055 0.018 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/formatter.py:84(format)
3 0.000 0.000 0.055 0.018 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/formatters/html.py:790(format_unencoded)
41 0.000 0.000 0.054 0.001 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/formatters/html.py:655(_wrap_div)
35 0.000 0.000 0.054 0.002 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/formatters/html.py:670(_wrap_pre)
29 0.006 0.000 0.054 0.002 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/formatters/html.py:683(_format_lines)
131 0.005 0.000 0.053 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/werkzeug/routing.py:707(build)
15 0.003 0.000 0.053 0.004 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/smartypants.py:252(smartypants)
37 0.003 0.000 0.050 0.001 ./redwind/controllers.py:994(mirror_image)
41942 0.048 0.000 0.048 0.000 {method 'get' of 'dict' objects}
30 0.006 0.000 0.046 0.002 ./redwind/util.py:84(bs4_sub)
15 0.000 0.000 0.044 0.003 ./redwind/controllers.py:199(<listcomp>)
6 0.000 0.000 0.044 0.007 ./redwind/controllers.py:250(create_dcontext)
20337 0.031 0.000 0.042 0.000 {built-in method isinstance}
508 0.001 0.000 0.042 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/lexer.py:184(streamer)
606 0.007 0.000 0.040 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/bs4/builder/_lxml.py:175(end)
508 0.015 0.000 0.039 0.000 /home/kmahan/redwind/venv/local/lib/python3.3/dist-packages/pygments/lexer.py:565(get_tokens_unprocessed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment