def METHOD_NAME(self, iteration, name, **kwargs):
    """ Disable profiling. """
    total_time = perf_counter() - self.start_time
    if self.detailed:
        self.profiler.METHOD_NAME()
        stats = Stats(self.profiler)
        self.profiler.clear()
        values = []
        for key, value in stats.stats.items():
            for k, v in value[4].items():
                call_id = f'{key[2]}::{k[0]}::{k[1]}::{k[2]}' # method_name, file_name, line_no, callee
                row_dict = {
                    'name': name, 'id': call_id,
                    'iter': self.iteration, 'outer_iter': iteration,
                    'total_time': total_time, 'eval_time': stats.total_tt, # base stats
                    'ncalls': v[0], 'tottime': v[2], 'cumtime': v[3], # detailed stats
                    **kwargs
                }
                values.append(row_dict)
    else:
        values = [{
            'name': name,
            'iter': self.iteration, 'outer_iter': iteration,
            'total_time': total_time,
            **kwargs
        }]
    with self._profile_info_lock:
        self._profile_info.extend(values)
        self.iteration += 1