Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def tracefunc(frame, event, arg, indent=[0]):
- if event == "call":
- indent[0] += 2
- #framea = sys._getframe( 0 )
- print "-" * indent[0] + "> call function", frame.f_code.co_name, frame.f_code.co_filename
- elif event == "return":
- print "<" + "-" * indent[0], "exit function", frame.f_code.co_name
- indent[0] -= 2
- return tracefunc
- from django.core.wsgi import get_wsgi_application
- sys.settrace(tracefunc)
- application = get_wsgi_application()
- --------> call function process_request /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py
- ----------> call function __init__ /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- ------------> call function __init__ /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- <------------ exit function __init__
- ------------> call function _newname /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- <------------ exit function _newname
- ------------> call function _set_daemon /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- --------------> call function currentThread /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- ----------------> call function __init__ /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- ------------------> call function _newname /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- <------------------ exit function _newname
- ------------------> call function __init__ /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- --------------------> call function __init__ /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- <-------------------- exit function __init__
- --------------------> call function _set_daemon /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
- <-------------------- exit function _set_daemon
- --------------------> call function Event /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement