We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61afe6e commit 4bc8564Copy full SHA for 4bc8564
line_profiler/_line_profiler.pyx
@@ -360,6 +360,12 @@ cdef class LineProfiler:
360
self._c_last_time[threading.get_ident()].clear()
361
unset_trace()
362
363
+ def reset_stats(self):
364
+ it = self._c_code_map.begin()
365
+ while it != self._c_code_map.end():
366
+ cython.operator.dereference(it).second.clear()
367
+ cython.operator.preincrement(it)
368
+
369
def get_stats(self):
370
"""
371
Return a LineStats object containing the timings.
0 commit comments