예제 #1
0
파일: operator.py 프로젝트: opesci/devito
 def _profile_sections(self, iet):
     """Instrument the IET for C-level profiling."""
     profiler = create_profile('timers')
     iet = profiler.instrument(iet)
     self._includes.extend(profiler._default_includes)
     self._func_table.update({i: MetaCall(None, False) for i in profiler._ext_calls})
     return iet, profiler
예제 #2
0
 def _profile_sections(self, iet):
     """Instrument the Iteration/Expression tree for C-level profiling."""
     profiler = create_profile('timers')
     iet = profiler.instrument(iet)
     self._globals.append(profiler.cdef)
     self._includes.extend(profiler._default_includes)
     self.func_table.update(
         {i: MetaCall(None, False)
          for i in profiler._ext_calls})
     return iet, profiler
예제 #3
0
 def _profile_sections(self, nodes, parameters):
     """Introduce C-level profiling nodes within the Iteration/Expression tree."""
     nodes, profiler = create_profile('timers', nodes)
     self._globals.append(profiler.cdef)
     parameters.append(Object(profiler.name, profiler.dtype, profiler.new))
     return nodes, profiler
예제 #4
0
파일: operator.py 프로젝트: richah2/devito
 def _profile_sections(self, iet,):
     """Introduce C-level profiling nodes within the Iteration/Expression tree."""
     iet, profiler = create_profile('timers', iet)
     self._globals.append(profiler.cdef)
     return iet, profiler