def METHOD_NAME(self):
    def start(prof):
        prof.start()
    # Make sure stats can be loaded when start and stop of profiler
    # are not executed in the same stack frame.
    profiler = self.new_profiler()
    start(profiler)
    profiler.stop()
    profiler.close()
    stats.load(self.logfn)
    os.unlink(self.logfn)