From aa6073b008e6d83b4e77f4dc42beff38a92d85eb Mon Sep 17 00:00:00 2001 From: Dan Minor Date: Mon, 18 Jan 2016 06:28:10 -0500 Subject: [PATCH] Bug 1239939 - [mozsystemmonitor] Reduce poll interval on exit r=wlach Currently we poll at an interval of 1 second when shutting down mozsystemmonitor. This causes a noticeable shutdown delay on short running processes. Reducing the interval to 0.1 reduces this delay without seeming to have any adverse effects. --- .../mozsystemmonitor/mozsystemmonitor/resourcemonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py b/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py index 5885bedd77c..e7a7b52fd01 100644 --- a/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py +++ b/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py @@ -286,7 +286,7 @@ class SystemResourceMonitor(object): done = False - while self._pipe.poll(1): + while self._pipe.poll(0.1): start_time, end_time, io_diff, cpu_diff, cpu_percent, virt_mem, \ swap_mem = self._pipe.recv()