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

Side by Side Diff: tracing/tracing/metrics/cpu_process_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/value/histogram.html"> 9 <link rel="import" href="/tracing/value/histogram.html">
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // taken. 71 // taken.
72 var missingSnapshotCount = snapshots.length - numeric.numValues; 72 var missingSnapshotCount = snapshots.length - numeric.numValues;
73 for (var i = 0; i < missingSnapshotCount; i++) 73 for (var i = 0; i < missingSnapshotCount; i++)
74 numeric.addSample(0); 74 numeric.addSample(0);
75 numeric.diagnostics.set('paths', new 75 numeric.diagnostics.set('paths', new
76 tr.v.d.Generic([...processData.paths])); 76 tr.v.d.Generic([...processData.paths]));
77 values.addHistogram(numeric); 77 values.addHistogram(numeric);
78 } 78 }
79 } 79 }
80 80
81 tr.metrics.MetricRegistry.register(cpuProcessMetric); 81 tr.metrics.MetricRegistry.register(cpuProcessMetric, {
82 histogramNames: new Set([]),
83 });
82 84
83 return { 85 return {
84 cpuProcessMetric, 86 cpuProcessMetric,
85 }; 87 };
86 }); 88 });
87 </script> 89 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/blink/gc_metric.html ('k') | tracing/tracing/metrics/metric_map_function.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698