| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from infra_libs.ts_mon import metrics | |
| 6 | |
| 7 request_bytes = metrics.CumulativeDistributionMetric('http/request_bytes') | |
| 8 response_bytes = metrics.CumulativeDistributionMetric('http/response_bytes') | |
| 9 durations = metrics.CumulativeDistributionMetric('http/durations') | |
| 10 response_status = metrics.CounterMetric('http/response_status') | |
| 11 | |
| 12 | |
| 13 def _reset_for_testing(): # pragma: no cover | |
| 14 for metric in (request_bytes, response_bytes, durations, response_status): | |
| 15 metric.reset() | |
| OLD | NEW |