| 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 """Classes representing individual metrics that can be sent.""" | 5 """Classes representing individual metrics that can be sent.""" |
| 6 | 6 |
| 7 import copy | 7 import copy |
| 8 import operator | 8 import operator |
| 9 import threading | 9 import threading |
| 10 import time | 10 import time |
| 11 | 11 |
| 12 from infra_libs.ts_mon.protos import metrics_pb2 | 12 from infra_libs.ts_mon.protos import metrics_pb2 |
| 13 | 13 |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 description=None): | 453 description=None): |
| 454 super(NonCumulativeDistributionMetric, self).__init__( | 454 super(NonCumulativeDistributionMetric, self).__init__( |
| 455 name, | 455 name, |
| 456 is_cumulative=False, | 456 is_cumulative=False, |
| 457 bucketer=bucketer, | 457 bucketer=bucketer, |
| 458 fields=fields, | 458 fields=fields, |
| 459 description=description) | 459 description=description) |
| 460 | 460 |
| 461 def is_cumulative(self): | 461 def is_cumulative(self): |
| 462 return False | 462 return False |
| OLD | NEW |