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

Unified Diff: mojo/devtools/common/devtoolslib/perf_dashboard.py

Issue 1433693004: mojo_benchmark: aggregate results over multiple runs. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: mojo/devtools/common/devtoolslib/perf_dashboard.py
diff --git a/mojo/devtools/common/devtoolslib/perf_dashboard.py b/mojo/devtools/common/devtoolslib/perf_dashboard.py
index f203edf79bc5c6feb065428b300e80fcc55d3539..d5388c352355460b20ee238ffeb367f9ca2fef16 100644
--- a/mojo/devtools/common/devtoolslib/perf_dashboard.py
+++ b/mojo/devtools/common/devtoolslib/perf_dashboard.py
@@ -40,6 +40,15 @@ class ChartDataRecorder(object):
'units': units,
'value': value}
+ def record_vector(self, chart_name, value_name, units, values):
+ """Records a single measurement value of a list of scalars type."""
+ if chart_name not in self.charts:
+ self.charts[chart_name] = {}
+ self.charts[chart_name][value_name] = {
+ 'type': 'list_of_scalar_values',
+ 'units': units,
+ 'values': values}
+
def get_chart_data(self):
"""Returns the JSON string representing the recorded chart data, wrapping
it with the required meta data."""

Powered by Google App Engine
This is Rietveld 408576698