[pypy-svn] r65492 - pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Fri May 29 06:04:22 CEST 2009


Author: fijal
Date: Fri May 29 06:04:20 2009
New Revision: 65492

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/jitprof.py
Log:
Swallow broken data. Profiler seems to work, but _end is called when
handling exception, which means that other exception is not displayed.


Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/jitprof.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/jitprof.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/jitprof.py	Fri May 29 06:04:20 2009
@@ -69,10 +69,12 @@
         t0 = self.t1
         self.t1 = self.timer()
         if not self.current:
-            raise BrokenProfilerData
+            print "BROKEN PROFILER DATA!"
+            return
         ev1 = self.current.pop()
         if ev1 != event:
-            raise BrokenProfilerData
+            print "BROKEN PROFILER DATA!"
+            return
         self.times[ev1] += self.t1 - t0
 
     def start_tracing(self):   self._start(TRACING)



More information about the Pypy-commit mailing list