How use web.http.profiler

70 views
Skip to first unread message

Tomas Schertel

unread,
Sep 10, 2012, 9:30:34 AM9/10/12
to we...@googlegroups.com
I have this on my application:

if __name__ == "__main__":
    my_app = web.application(urls, globals(), autoreload=True)
    web.http.profiler(my_app)
    my_app.run()

But nothing has changed in "python my_app.py" output.
Am I doing it right?

Anand Chitipothu

unread,
Sep 10, 2012, 9:38:49 AM9/10/12
to we...@googlegroups.com
I think you have to do:

if __name__ == "__main__":
    my_app = web.application(urls, globals(), autoreload=True)
    my_app.run(web.profiler)

Or:

if __name__ == "__main__":
    my_app = web.application(urls, globals(), autoreload=True)
    my_app = web.profiler(my_app)
    my_app.run()

Note: web.profiler is same as web.http.profiler.

Anand

Tomas Schertel

unread,
Sep 10, 2012, 12:46:35 PM9/10/12
to we...@googlegroups.com
WOW!!!
Web.profiler shows a lot of information... I mean it. A LOT!!!
I thinks it's not what I'm looking for..

Thanks.
Reply all
Reply to author
Forward
0 new messages