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

Unified Diff: tracing/tracing/metrics/value_set.html

Issue 1964663003: [telemetry] Add Html2OutputFormatter for generating results2.html (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: fix Created 4 years, 7 months 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: tracing/tracing/metrics/value_set.html
diff --git a/tracing/tracing/metrics/value_set.html b/tracing/tracing/metrics/value_set.html
index 60d636146a8bae77347d802a3e336f4a21fd348d..e949176da282779b0dbfc8f9e5bf3cbb1d19a878 100644
--- a/tracing/tracing/metrics/value_set.html
+++ b/tracing/tracing/metrics/value_set.html
@@ -30,6 +30,14 @@ tr.exportTo('tr.metrics', function() {
return tr.b.dictionaryValues(this.values_).map(cb, opt_this);
},
+ addValueDicts: function(dicts) {
+ dicts.forEach(function(dict) {
+ var value = tr.v.Value.fromDict(dict);
+ this.addValue(value);
+ // TODO(TBMv2.1): Patch up RelatedValueSets here.
+ }, this);
+ },
+
getValuesWithName: function(name) {
return tr.b.dictionaryValues(this.values_).filter(function(value) {
return value.name.indexOf(name) > -1;

Powered by Google App Engine
This is Rietveld 408576698