1. Christoph Rissner
  2. line_profiler_non_selective

Commits

c...@visotech.at  committed 92e7f2d

LineProfiler::reset_stats()

  • Participants
  • Parent commits aafdeb9
  • Branches default

Comments (0)

Files changed (1)

File line_profiler.py

View file
  • Ignore whitespace
         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.
         """