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

Unified Diff: tools/perf/metrics/media.py

Issue 83793013: Fix media metrics report float values post crrev.com/84483002 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/media.py
diff --git a/tools/perf/metrics/media.py b/tools/perf/metrics/media.py
index 14e8920f35175839f3b8d0398c05148d8dda1c4f..57d0c3e7df0638302f3aa4f39ab4746a5f626c2b 100644
--- a/tools/perf/metrics/media.py
+++ b/tools/perf/metrics/media.py
@@ -58,7 +58,11 @@ class MediaMetric(Metric):
for m in metrics:
if m.startswith(metric):
special_label = m[len(metric):]
- results.Add(trace + special_label, unit, metrics[m],
+ if isinstance(metrics[m], list):
+ values = [float(v) for v in metrics[m]]
+ else:
+ values = float(metrics[m])
+ results.Add(trace + special_label, unit, values,
chart_name=metric, data_type='default')
trace = media_metric['id']
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698