| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import time | 5 import time |
| 6 | 6 |
| 7 from measurements import smoothness | 7 from measurements import smoothness |
| 8 from telemetry.page import page_test | 8 from telemetry.page import page_test |
| 9 from telemetry.value import scalar | 9 from telemetry.value import scalar |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 all_data = tab.EvaluateJavaScript('window.benchmark_results.results') | 50 all_data = tab.EvaluateJavaScript('window.benchmark_results.results') |
| 51 for data in all_data: | 51 for data in all_data: |
| 52 width = data['width'] | 52 width = data['width'] |
| 53 height = data['height'] | 53 height = data['height'] |
| 54 area = width * height | 54 area = width * height |
| 55 time_ms = data['time_ms'] | 55 time_ms = data['time_ms'] |
| 56 | 56 |
| 57 results.AddValue(scalar.ScalarValue( | 57 results.AddValue(scalar.ScalarValue( |
| 58 results.current_page, 'area_%07d_%dx%d' % (area, width, height), | 58 results.current_page, 'area_%07d_%dx%d' % (area, width, height), |
| 59 'ms', time_ms)) | 59 'ms', time_ms, higher_is_better=False)) |
| OLD | NEW |