changeset 50926 | 18c8c18993f0 |
parent 48946 | 642e31cb55f0 |
child 51785 | 99632adff795 |
50925:d718eddf01d9 | 50926:18c8c18993f0 |
---|---|
1 import _lsprof |
1 import _lsprof |
2 import sys |
2 import sys |
3 |
|
4 from .pycompat import getattr |
|
5 |
3 |
6 Profiler = _lsprof.Profiler |
4 Profiler = _lsprof.Profiler |
7 |
5 |
8 # PyPy doesn't expose profiler_entry from the module. |
6 # PyPy doesn't expose profiler_entry from the module. |
9 profiler_entry = getattr(_lsprof, 'profiler_entry', None) |
7 profiler_entry = getattr(_lsprof, 'profiler_entry', None) |