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

Side by Side Diff: tracing/tracing/metrics/system_health/webview_startup_metric.html

Issue 2656493002: Register metric Histogram names. (Closed)
Patch Set: rebase Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/metrics/metric_registry.html"> 8 <link rel="import" href="/tracing/metrics/metric_registry.html">
9 <link rel="import" href="/tracing/metrics/system_health/utils.html"> 9 <link rel="import" href="/tracing/metrics/system_health/utils.html">
10 <link rel="import" href="/tracing/value/histogram.html"> 10 <link rel="import" href="/tracing/value/histogram.html">
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 loadCPUHist.addSample(slice.cpuDuration); 49 loadCPUHist.addSample(slice.cpuDuration);
50 } 50 }
51 } 51 }
52 52
53 values.addHistogram(startupWallHist); 53 values.addHistogram(startupWallHist);
54 values.addHistogram(startupCPUHist); 54 values.addHistogram(startupCPUHist);
55 values.addHistogram(loadWallHist); 55 values.addHistogram(loadWallHist);
56 values.addHistogram(loadCPUHist); 56 values.addHistogram(loadCPUHist);
57 } 57 }
58 58
59 tr.metrics.MetricRegistry.register(webviewStartupMetric); 59 tr.metrics.MetricRegistry.register(webviewStartupMetric, {
60 histogramNames: new Set([]),
61 });
60 62
61 return { 63 return {
62 webviewStartupMetric, 64 webviewStartupMetric,
63 }; 65 };
64 }); 66 });
65 </script> 67 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/system_health/responsiveness_metric.html ('k') | tracing/tracing/metrics/tracing_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698