We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Monitor(Thread): """Thread that calls a monitoring function every ``delay`` seconds.""" def __init__(self, delay, func): super().__init__(daemon=True) self.stopped = False self.delay = delay self.func = func self.start_time = time.time() self.count = 0 def run(self): while not self.stopped: time.sleep(0) self.func() self.count += 1 def stop(self): self.stopped = True # (time.time() - self.start_time) / self.count = 2sec when self.delay == 0.1
The text was updated successfully, but these errors were encountered:
it is related to the process monitoring that takes up to 3sec
Sorry, something went wrong.
I moved the process monitoring out of the main monitoring so it won't impact the other metrics
No branches or pull requests
The text was updated successfully, but these errors were encountered: