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

Unified Diff: chrome/test/functional/perf.py

Issue 8772022: Flush stdout when printing perf values for ChromeOS in pyauto perf tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/perf.py
diff --git a/chrome/test/functional/perf.py b/chrome/test/functional/perf.py
index 35dd6617b3457ea0a991e7566ca2d3105c77ca35..8dbb1831ca760c8c4b4b2526c218574fca7fb8b7 100755
--- a/chrome/test/functional/perf.py
+++ b/chrome/test/functional/perf.py
@@ -30,6 +30,7 @@ import posixpath
import re
import SimpleHTTPServer
import SocketServer
+import sys
import tempfile
import threading
import time
@@ -135,6 +136,7 @@ class BasePerfTest(pyauto.PyUITest):
description, description[:30])
print '\n%s(\'%s\', %.2f)%s' % (self._PERF_OUTPUT_MARKER_PRE, description,
value, self._PERF_OUTPUT_MARKER_POST)
+ sys.stdout.flush()
def _PrintSummaryResults(self, description, values, units):
"""Logs summary measurement information.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698