Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2852)

Unified Diff: chrome/test/pyautolib/perf_snapshot.py

Issue 9309019: Add argument use_poll=True to asyncore.loop() calls in perf_snapshot.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/functional/perf_endure.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/perf_snapshot.py
diff --git a/chrome/test/pyautolib/perf_snapshot.py b/chrome/test/pyautolib/perf_snapshot.py
index d5ea276bc6a0385bdea20a02278f92ba466e41d5..cddc0d081ebdb29379689be79c9be0543cded315 100755
--- a/chrome/test/pyautolib/perf_snapshot.py
+++ b/chrome/test/pyautolib/perf_snapshot.py
@@ -442,7 +442,7 @@ class _RemoteInspectorBaseThread(threading.Thread):
while asyncore.socket_map:
if self._client.handshake_done or self._killed:
break
- asyncore.loop(timeout=1, count=1)
+ asyncore.loop(timeout=1, count=1, use_poll=True)
def NotifySocketClientException(self):
"""Notifies that the _DevToolsSocketClient encountered an exception."""
@@ -959,7 +959,7 @@ class PerformanceSnapshotter(object):
while asyncore.socket_map:
if not snapshotter_thread.is_alive():
break
- asyncore.loop(timeout=1, count=1)
+ asyncore.loop(timeout=1, count=1, use_poll=True)
except KeyboardInterrupt:
pass
self._logger.debug('Waiting for snapshotter thread to die...')
@@ -976,7 +976,7 @@ class PerformanceSnapshotter(object):
while asyncore.socket_map:
if not gc_thread.is_alive():
break
- asyncore.loop(timeout=1, count=1)
+ asyncore.loop(timeout=1, count=1, use_poll=True)
except KeyboardInterrupt:
pass
gc_thread.join()
@@ -998,7 +998,7 @@ class PerformanceSnapshotter(object):
while asyncore.socket_map:
if not mem_count_thread.is_alive():
break
- asyncore.loop(timeout=1, count=1)
+ asyncore.loop(timeout=1, count=1, use_poll=True)
except KeyboardInterrupt:
pass
mem_count_thread.join()
« no previous file with comments | « chrome/test/functional/perf_endure.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698