コード例 #1
0
ファイル: runner.py プロジェクト: neurobcn/plexnet
 def __init__(self,
              rtyper,
              stats,
              translate_support_code=False,
              gcdescr=None):
     AbstractLLCPU.__init__(self, rtyper, stats, translate_support_code,
                            gcdescr)
     self._bootstrap_cache = {}
コード例 #2
0
ファイル: runner.py プロジェクト: alkorzt/pypy
    def __init__(self, rtyper, stats, opts=None, translate_support_code=False,
                 gcdescr=None):
        AbstractLLCPU.__init__(self, rtyper, stats, opts,
                               translate_support_code, gcdescr)

        profile_agent = ProfileAgent()
        if rtyper is not None:
            config = rtyper.annotator.translator.config
            if config.translation.jit_profiler == "oprofile":
                from pypy.jit.backend.x86 import oprofile
                profile_agent = oprofile.OProfileAgent()

        self.profile_agent = profile_agent
コード例 #3
0
ファイル: runner.py プロジェクト: xx312022850/pypy
    def __init__(self,
                 rtyper,
                 stats,
                 opts=None,
                 translate_support_code=False,
                 gcdescr=None):
        AbstractLLCPU.__init__(self, rtyper, stats, opts,
                               translate_support_code, gcdescr)

        profile_agent = ProfileAgent()
        if rtyper is not None:
            config = rtyper.annotator.translator.config
            if config.translation.jit_profiler == "oprofile":
                from pypy.jit.backend.x86 import oprofile
                profile_agent = oprofile.OProfileAgent()

        self.profile_agent = profile_agent
コード例 #4
0
ファイル: runner.py プロジェクト: ieure/pypy
    def __init__(self, rtyper, stats, opts=None, translate_support_code=False,
                 gcdescr=None):
        if gcdescr is not None:
            gcdescr.force_index_ofs = FORCE_INDEX_OFS
        AbstractLLCPU.__init__(self, rtyper, stats, opts,
                               translate_support_code, gcdescr)

        profile_agent = ProfileAgent()
        if rtyper is not None:
            config = rtyper.annotator.translator.config
            if config.translation.jit_profiler == "oprofile":
                from pypy.jit.backend.x86 import oprofile
                if not oprofile.OPROFILE_AVAILABLE:
                    log.WARNING('oprofile support was explicitly enabled, but oprofile headers seem not to be available')
                profile_agent = oprofile.OProfileAgent()
            self.with_threads = config.translation.thread

        self.profile_agent = profile_agent
コード例 #5
0
    def __init__(self,
                 rtyper,
                 stats,
                 opts=None,
                 translate_support_code=False,
                 gcdescr=None):
        if gcdescr is not None:
            gcdescr.force_index_ofs = FORCE_INDEX_OFS
        AbstractLLCPU.__init__(self, rtyper, stats, opts,
                               translate_support_code, gcdescr)

        profile_agent = ProfileAgent()
        if rtyper is not None:
            config = rtyper.annotator.translator.config
            if config.translation.jit_profiler == "oprofile":
                from pypy.jit.backend.x86 import oprofile
                if not oprofile.OPROFILE_AVAILABLE:
                    log.WARNING(
                        'oprofile support was explicitly enabled, but oprofile headers seem not to be available'
                    )
                profile_agent = oprofile.OProfileAgent()
            self.with_threads = config.translation.thread

        self.profile_agent = profile_agent
コード例 #6
0
ファイル: runner.py プロジェクト: enyst/plexnet
 def __init__(self, rtyper, stats, translate_support_code=False,
              gcdescr=None):
     AbstractLLCPU.__init__(self, rtyper, stats, translate_support_code,
                            gcdescr)
     self._bootstrap_cache = {}