| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 | 5 |
| 6 """A helper module for parsing JSON objects from perf tests results.""" | 6 """A helper module for parsing JSON objects from perf tests results.""" |
| 7 | 7 |
| 8 import json | 8 import json |
| 9 | 9 |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 name: The 'name' tag to filter on in the JSON file. | 151 name: The 'name' tag to filter on in the JSON file. |
| 152 | 152 |
| 153 Returns: | 153 Returns: |
| 154 See GetAverageRunInfo Returns section. | 154 See GetAverageRunInfo Returns section. |
| 155 """ | 155 """ |
| 156 with open(json_file, 'r') as f: | 156 with open(json_file, 'r') as f: |
| 157 data = f.read() | 157 data = f.read() |
| 158 perf = json.loads(data) | 158 perf = json.loads(data) |
| 159 | 159 |
| 160 return GetAverageRunInfo(perf, name) | 160 return GetAverageRunInfo(perf, name) |
| OLD | NEW |