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

Side by Side Diff: tracing/tracing/metrics/system_health/estimated_input_latency_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 2017 The Chromium Authors. All rights reserved. 3 Copyright 2017 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/base/iteration_helpers.html"> 8 <link rel="import" href="/tracing/base/iteration_helpers.html">
9 <link rel="import" href="/tracing/extras/chrome/estimated_input_latency.html"> 9 <link rel="import" href="/tracing/extras/chrome/estimated_input_latency.html">
10 <link rel="import" href="/tracing/model/helpers/chrome_model_helper.html"> 10 <link rel="import" href="/tracing/model/helpers/chrome_model_helper.html">
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 .findIntersection(rendererHelper.mainThread.bounds); 102 .findIntersection(rendererHelper.mainThread.bounds);
103 interactiveHistogram.addSample( 103 interactiveHistogram.addSample(
104 tr.e.chrome.maxExpectedQueueingTimeInSlidingWindow( 104 tr.e.chrome.maxExpectedQueueingTimeInSlidingWindow(
105 interactiveWindow.min, interactiveWindow.max, 105 interactiveWindow.min, interactiveWindow.max,
106 WINDOW_SIZE_MS, tasks)); 106 WINDOW_SIZE_MS, tasks));
107 } 107 }
108 values.addHistogram(totalHistogram); 108 values.addHistogram(totalHistogram);
109 values.addHistogram(interactiveHistogram); 109 values.addHistogram(interactiveHistogram);
110 } 110 }
111 111
112 tr.metrics.MetricRegistry.register(estimatedInputLatency); 112 tr.metrics.MetricRegistry.register(estimatedInputLatency, {
113 histogramNames: new Set(),
114 });
113 115
114 return { 116 return {
115 estimatedInputLatency, 117 estimatedInputLatency,
116 }; 118 };
117 }); 119 });
118 </script> 120 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/system_health/cpu_time_metric.html ('k') | tracing/tracing/metrics/system_health/loading_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698