Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: client/third_party/infra_libs/ts_mon/common/metric_store.py

Issue 2465423002: Roll infra_libs to 564aaf7480f24c90687df79d9cef910cc342a54d (Closed)
Patch Set: update readmes Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/third_party/infra_libs/ts_mon/common/metric_store.py
diff --git a/client/third_party/infra_libs/ts_mon/common/metric_store.py b/client/third_party/infra_libs/ts_mon/common/metric_store.py
index 4d21feeabd964d1a1a1354f0f77bbab14eb355d9..1675bf0fe9f8299fd9aa95b279dc63718ae4892a 100644
--- a/client/third_party/infra_libs/ts_mon/common/metric_store.py
+++ b/client/third_party/infra_libs/ts_mon/common/metric_store.py
@@ -257,13 +257,15 @@ class InProcessMetricStore(MetricStore):
# generator's consumer) modifies them while we're iterating.
with self._thread_lock:
values = copy.copy(self._values)
+ end_time = self._time_fn()
for name, metric_values in values.iteritems():
if name not in self._state.metrics:
continue
start_time = metric_values.start_time
for target, fields_values in metric_values.values.iter_targets():
- yield target, self._state.metrics[name], start_time, fields_values
+ yield (target, self._state.metrics[name], start_time, end_time,
+ fields_values)
def set(self, name, fields, target_fields, value, enforce_ge=False):
with self._thread_lock:
« no previous file with comments | « client/third_party/infra_libs/ts_mon/common/interface.py ('k') | client/third_party/infra_libs/ts_mon/common/metrics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698