feat: add clean method
This commit is contained in:
@@ -81,6 +81,9 @@ def is_404(url):
|
|||||||
class RequestProfiler:
|
class RequestProfiler:
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
|
def clear(self):
|
||||||
|
self.data = []
|
||||||
|
|
||||||
def add_status(self, status):
|
def add_status(self, status):
|
||||||
self.data.append((time.time(), status))
|
self.data.append((time.time(), status))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user