code: def reset_stats(self):
          
          # Note: not using self.Profile, since pstats.Stats() fails then
          self.stats = pstats.Stats(Profile())
          self.ncalls = 0
          self.skipped = 0
docs: Reset accumulated profiler statistics.