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
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
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
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