Created
January 25, 2016 23:03
-
-
Save harlowja/851679cc5f513aa54a94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from osprofiler import profiler | |
@profiler.trace_cls('A', info={'crap': 'crap'}) | |
class A(object): | |
def c(self): | |
pass | |
a = A() | |
print(a.c.__traced_name__) | |
print(a.c.__traced_info__) | |
@profiler.trace_cls('B', info={'crap': 'crap2'}) | |
class B(A): | |
def e(self): | |
pass | |
a = A() | |
print(a.c.__traced_name__) | |
print(a.c.__traced_info__) | |
b = B() | |
print(b.c.__traced_name__) | |
print(b.c.__traced_info__) | |
print(b.e.__traced_name__) | |
print(b.e.__traced_info__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment