| 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 os | 5 import os |
| 6 | 6 |
| 7 from core import path_util | 7 from core import path_util |
| 8 from core import perf_benchmark | 8 from core import perf_benchmark |
| 9 | 9 |
| 10 from page_sets import webgl_supported_shared_state | 10 from page_sets import webgl_supported_shared_state |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 for line in log.splitlines(): | 221 for line in log.splitlines(): |
| 222 if line.startswith("FATAL: "): | 222 if line.startswith("FATAL: "): |
| 223 print line | 223 print line |
| 224 continue | 224 continue |
| 225 if not line.startswith('values '): | 225 if not line.startswith('values '): |
| 226 continue | 226 continue |
| 227 parts = line.split() | 227 parts = line.split() |
| 228 values = [float(v.replace(',', '')) for v in parts[1:-1]] | 228 values = [float(v.replace(',', '')) for v in parts[1:-1]] |
| 229 units = parts[-1] | 229 units = parts[-1] |
| 230 metric = page.display_name.split('.')[0].replace('/', '_') | 230 metric = page.name.split('.')[0].replace('/', '_') |
| 231 results.AddValue(list_of_scalar_values.ListOfScalarValues( | 231 results.AddValue(list_of_scalar_values.ListOfScalarValues( |
| 232 results.current_page, metric, units, values)) | 232 results.current_page, metric, units, values)) |
| 233 | 233 |
| 234 break | 234 break |
| 235 | 235 |
| 236 print log | 236 print log |
| 237 | 237 |
| 238 self.PrintAndCollectTraceEventMetrics(trace_cpu_time_metrics, results) | 238 self.PrintAndCollectTraceEventMetrics(trace_cpu_time_metrics, results) |
| 239 | 239 |
| 240 | 240 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 self.DisableStory( | 438 self.DisableStory( |
| 439 'v1-large-deep-distribution.html', | 439 'v1-large-deep-distribution.html', |
| 440 [story.expectations.ANDROID_ONE], | 440 [story.expectations.ANDROID_ONE], |
| 441 'crbug.com/736512') | 441 'crbug.com/736512') |
| 442 self.DisableStory( | 442 self.DisableStory( |
| 443 'v1-distribution-disconnected-and-reconnected.html', | 443 'v1-distribution-disconnected-and-reconnected.html', |
| 444 [story.expectations.ANDROID_ONE], | 444 [story.expectations.ANDROID_ONE], |
| 445 'crbug.com/736512') | 445 'crbug.com/736512') |
| 446 return StoryExpectations() | 446 return StoryExpectations() |
| 447 | 447 |
| OLD | NEW |