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

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

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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/sample_metric.html
diff --git a/tracing/tracing/metrics/sample_metric.html b/tracing/tracing/metrics/sample_metric.html
index 43ae5dae567dc833ef58bede398ba61fd27f942d..b031e7b2571e94019787ee68098dc3fe6f89a94f 100644
--- a/tracing/tracing/metrics/sample_metric.html
+++ b/tracing/tracing/metrics/sample_metric.html
@@ -29,10 +29,22 @@ tr.exportTo('tr.metrics', function() {
values.addValue(new tr.v.NumericValue('baz', n3));
}
+ function sampleMetric2(values, model) {
+ var n1 = new tr.v.ScalarNumeric(sizeInBytes_smallerIsBetter, 1);
+ var n2 = new tr.v.ScalarNumeric(sizeInBytes_smallerIsBetter, 2);
+ var n3 = SIZE_NUMERIC_BUILDER.build();
+ n3.add(1);
+ values.addValue(new tr.v.NumericValue('one', n1));
+ values.addValue(new tr.v.NumericValue('two', n2));
+ values.addValue(new tr.v.NumericValue('three', n3));
+ }
+
tr.metrics.MetricRegistry.register(sampleMetric);
+ tr.metrics.MetricRegistry.register(sampleMetric2);
return {
- sampleMetric: sampleMetric
+ sampleMetric: sampleMetric,
+ sampleMetric2: sampleMetric2
};
});
</script>
« no previous file with comments | « tracing/tracing/metrics/metric_runner.py ('k') | tracing/tracing/metrics/system_health/clock_sync_latency_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698