diff options
author | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 17:11:18 +0000 |
---|---|---|
committer | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 17:11:18 +0000 |
commit | cf2b70ce4b396e88905ab0e2c4b2dac4e19610a5 (patch) | |
tree | 5f23bfc12a577d3d8d156eaf78a0aeed332823fb /tools/perf/perf_tools/texture_upload_benchmark.py | |
parent | 78ff329855b73fb391afe21a140dd40303feda66 (diff) | |
download | chromium_src-cf2b70ce4b396e88905ab0e2c4b2dac4e19610a5.zip chromium_src-cf2b70ce4b396e88905ab0e2c4b2dac4e19610a5.tar.gz chromium_src-cf2b70ce4b396e88905ab0e2c4b2dac4e19610a5.tar.bz2 |
Output CRC results in a format the perfbots understand.
This required specifying units in the results. With this patch, we now
print a summary at the end of the benchmark like:
*RESULT mean_frame_time: mean_frame_time= [10.966,17.067,10.177] ms
Avg mean_frame_time: 12.736667ms
Sd mean_frame_time: 3.770871ms
BUG=None
TEST=None
Review URL: https://codereview.chromium.org/11090037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/perf/perf_tools/texture_upload_benchmark.py')
-rw-r--r-- | tools/perf/perf_tools/texture_upload_benchmark.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/perf/perf_tools/texture_upload_benchmark.py b/tools/perf/perf_tools/texture_upload_benchmark.py index c087e13..c837f6a 100644 --- a/tools/perf/perf_tools/texture_upload_benchmark.py +++ b/tools/perf/perf_tools/texture_upload_benchmark.py @@ -5,7 +5,7 @@ from chrome_remote_control import multi_page_benchmark from perf_tools import scrolling_benchmark class TextureUploadBenchmark(scrolling_benchmark.ScrollingBenchmark): - def MeasurePage(self, page, tab): + def MeasurePage(self, page, tab, results): rendering_stats_deltas = self.ScrollPageFully(page, tab) if (('totalCommitCount' not in rendering_stats_deltas) @@ -16,10 +16,9 @@ class TextureUploadBenchmark(scrolling_benchmark.ScrollingBenchmark): 1000 * rendering_stats_deltas['totalCommitTimeInSeconds'] / rendering_stats_deltas['totalCommitCount']) - return { - 'texture_upload_count': rendering_stats_deltas['textureUploadCount'], - 'average_commit_time_ms': averageCommitTimeMs - } + results.Add('texture_upload_count', 'count', + rendering_stats_deltas['textureUploadCount']) + results.Add('average_commit_time', 'ms', averageCommitTimeMs) def Main(): return multi_page_benchmark.Main(TextureUploadBenchmark()) |