Collect stats a bit more often

This commit is contained in:
Antoine Pitrou 2011-10-04 12:06:06 +02:00
parent 75e78b6c77
commit 5b99df68b0
1 changed files with 1 additions and 1 deletions

View File

@ -1186,7 +1186,7 @@ class _MemoryWatchdog:
pipe_fd, wfd = os.pipe()
# _file_watchdog() doesn't take the GIL in its child thread, and
# therefore collects statistics timely
faulthandler._file_watchdog(rfd, wfd, 3.0)
faulthandler._file_watchdog(rfd, wfd, 1.0)
self.started = True
self.thread = threading.Thread(target=self.consumer, args=(pipe_fd,))
self.thread.daemon = True