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

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: comments 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..b8fce24bb4e8b742ffb2a7d8fe5feeb7812a1f42 100644
--- a/tracing/tracing/metrics/value_set.html
+++ b/tracing/tracing/metrics/value_set.html
@@ -8,6 +8,7 @@ found in the LICENSE file.
<link rel="import" href="/tracing/base/iteration_helpers.html">
<link rel="import" href="/tracing/value/numeric.html">
<link rel="import" href="/tracing/value/unit.html">
+<link rel="import" href="/tracing/value/value.html">
<script>
'use strict';
@@ -30,6 +31,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;
« no previous file with comments | « tracing/tracing/metrics/system_health/responsiveness_metric.html ('k') | tracing/tracing/results2_template.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698