[pypy-svn] r70531 - pypy/branch/jit-profiling/pypy/interpreter
fijal at codespeak.net
fijal at codespeak.net
Tue Jan 12 15:28:02 CET 2010
Author: fijal
Date: Tue Jan 12 15:28:01 2010
New Revision: 70531
Modified:
pypy/branch/jit-profiling/pypy/interpreter/executioncontext.py
Log:
disable c_*_trace while we're jitted
Modified: pypy/branch/jit-profiling/pypy/interpreter/executioncontext.py
==============================================================================
--- pypy/branch/jit-profiling/pypy/interpreter/executioncontext.py (original)
+++ pypy/branch/jit-profiling/pypy/interpreter/executioncontext.py Tue Jan 12 15:28:01 2010
@@ -167,6 +167,8 @@
def c_call_trace(self, frame, w_func):
"Profile the call of a builtin function"
+ if self._we_are_jitted():
+ return
if self.profilefunc is None:
frame.is_being_profiled = False
else:
@@ -174,6 +176,8 @@
def c_return_trace(self, frame, w_retval):
"Profile the return from a builtin function"
+ if self._we_are_jitted():
+ return
if self.profilefunc is None:
frame.is_being_profiled = False
else:
@@ -181,6 +185,8 @@
def c_exception_trace(self, frame, w_exc):
"Profile function called upon OperationError."
+ if self._we_are_jitted():
+ return
if self.profilefunc is None:
frame.is_being_profiled = False
else:
More information about the Pypy-commit
mailing list