Commits

Anonymous committed 92e7f2d

LineProfiler::reset_stats()

  • Participants
  • Parent commits aafdeb9

Comments (0)

Files changed (1)

         lstats = self.get_stats()
         show_text(lstats.timings, lstats.unit, stream=stream)
 
+    def reset_stats(self):
+        for v in self.code_map.values():
+            v.clear()
+
     def run(self, cmd):
         """ Profile a single executable statment in the main namespace.
         """