Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from osprofiler import profiler
my_special_crap = {'stuff': 'stuff'}
@profiler.trace('b', info=my_special_crap)
def a():
print 'during-a-called'
print my_special_crap
b()
print 'after-b-called'
print my_special_crap
print 'end-a-called'
@profiler.trace('b', info=my_special_crap)
def b():
print 'during-b-called'
print my_special_crap
print 'end-b-called'
a()
print my_special_crap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment