[pypy-svn] r34648 - pypy/dist/pypy/translator/tool

pedronis at codespeak.net pedronis at codespeak.net
Thu Nov 16 02:05:36 CET 2006


Author: pedronis
Date: Thu Nov 16 02:05:34 2006
New Revision: 34648

Modified:
   pypy/dist/pypy/translator/tool/cbuild.py
Log:
this class was not used so far, is moved in the next check-in



Modified: pypy/dist/pypy/translator/tool/cbuild.py
==============================================================================
--- pypy/dist/pypy/translator/tool/cbuild.py	(original)
+++ pypy/dist/pypy/translator/tool/cbuild.py	Thu Nov 16 02:05:34 2006
@@ -285,25 +285,6 @@
         finally:
             compiler.compile_extra.pop()
             compiler.link_extra.pop()
-
-class ProfInstrument(object):
-    name = "profinstrument"
-    
-    def __init__(self, compiler):
-        self.compiler = compiler
-
-    def first(self):
-        self.compiler._build()
-
-    def probe(self, exe, args):
-        from pypy.tool.udir import udir        
-        from py.compat import subprocess
-        env = os.environ.copy()
-        env['_INSTRUMENT_COUNTERS'] = str(udir.join('_instrument_counters'))
-        subprocess.call([exe, args], env=env)
-        
-    def after(self):
-        pass
             
 class CCompiler:
 
@@ -354,7 +335,7 @@
                 else:
                     ProfDriver, args = self.profbased
                     profdrv = ProfDriver(self)
-                    dolog = getattr(log, ProfDriver.name)
+                    dolog = getattr(log, profdrv.name)
                     dolog(args)
                     profdrv.first()
                     dolog('Gathering profile data from: %s %s' % (



More information about the Pypy-commit mailing list