Title: [109482] trunk/Tools
Revision
109482
Author
[email protected]
Date
2012-03-01 18:35:14 -0800 (Thu, 01 Mar 2012)

Log Message

run-perf-tests should report the test runtime
https://bugs.webkit.org/show_bug.cgi?id=80078

Reviewed by Hajime Morita.

Record and output the aggreated test run time.

* Scripts/webkitpy/performance_tests/perftestsrunner.py:
(PerfTestsRunner._run_single_test):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (109481 => 109482)


--- trunk/Tools/ChangeLog	2012-03-02 02:32:38 UTC (rev 109481)
+++ trunk/Tools/ChangeLog	2012-03-02 02:35:14 UTC (rev 109482)
@@ -1,3 +1,15 @@
+2012-03-01  Ryosuke Niwa  <[email protected]>
+
+        run-perf-tests should report the test runtime
+        https://bugs.webkit.org/show_bug.cgi?id=80078
+
+        Reviewed by Hajime Morita.
+
+        Record and output the aggreated test run time.
+
+        * Scripts/webkitpy/performance_tests/perftestsrunner.py:
+        (PerfTestsRunner._run_single_test):
+
 2012-03-01  Michael Nordman  <[email protected]>
 
         [chromium] Use webkit_support to create session storage namespaces in DRT.

Modified: trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py (109481 => 109482)


--- trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py	2012-03-02 02:32:38 UTC (rev 109481)
+++ trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py	2012-03-02 02:35:14 UTC (rev 109482)
@@ -302,6 +302,8 @@
 
     def _run_single_test(self, test, driver, is_chromium_style):
         test_failed = False
+        start_time = time.time()
+
         output = driver.run_test(DriverInput(test, self._options.time_out_ms, None, False))
 
         if output.text == None:
@@ -325,4 +327,6 @@
         if test_failed:
             self._printer.write('FAILED')
 
+        self._printer.write("Finished: %f s" % (time.time() - start_time))
+
         return not test_failed
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to