'Enable the profiler'

def enable_profiling(self):

    if (not self._profiler):
        self._profiler = cProfile.Profile()
    self._profiler.enable()
    log.debug('Agent    profiling    is    enabled')
