| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import collections | 5 import collections |
| 6 import copy | 6 import copy |
| 7 import logging | 7 import logging |
| 8 import threading | 8 import threading |
| 9 import time | 9 import time |
| 10 | 10 |
| 11 from infra_libs.ts_mon.common import errors | 11 from infra_libs.ts_mon.common import errors |
| 12 | 12 |
| 13 | 13 |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 def reset_for_unittest(self, name=None): | 288 def reset_for_unittest(self, name=None): |
| 289 if name is not None: | 289 if name is not None: |
| 290 self._reset(name) | 290 self._reset(name) |
| 291 else: | 291 else: |
| 292 for name in self._values.keys(): | 292 for name in self._values.keys(): |
| 293 self._reset(name) | 293 self._reset(name) |
| 294 | 294 |
| 295 def _reset(self, name): | 295 def _reset(self, name): |
| 296 self._values[name] = MetricValues(self, self._start_time(name)) | 296 self._values[name] = MetricValues(self, self._start_time(name)) |
| OLD | NEW |