Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created February 5, 2016 19:29
Show Gist options
  • Save harlowja/b3f9c920c3a6951128b5 to your computer and use it in GitHub Desktop.
Save harlowja/b3f9c920c3a6951128b5 to your computer and use it in GitHub Desktop.
from osprofiler import profiler
def big_e():
pass
class A(object):
@staticmethod
def e():
pass
ee = staticmethod(big_e)
a = A()
a = profiler.trace_cls('a')(a)
a.e()
a.ee()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment