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

Side by Side Diff: tracing/tracing/metrics/v8/gc_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/base/range.html"> 8 <link rel="import" href="/tracing/base/range.html">
9 <link rel="import" href="/tracing/base/unit.html"> 9 <link rel="import" href="/tracing/base/unit.html">
10 <link rel="import" href="/tracing/metrics/metric_registry.html"> 10 <link rel="import" href="/tracing/metrics/metric_registry.html">
(...skipping 14 matching lines...) Expand all
25 addDurationOfTopEvents(values, model); 25 addDurationOfTopEvents(values, model);
26 addTotalDurationOfTopEvents(values, model); 26 addTotalDurationOfTopEvents(values, model);
27 addDurationOfSubEvents(values, model); 27 addDurationOfSubEvents(values, model);
28 addIdleTimesOfTopEvents(values, model); 28 addIdleTimesOfTopEvents(values, model);
29 addTotalIdleTimesOfTopEvents(values, model); 29 addTotalIdleTimesOfTopEvents(values, model);
30 addPercentageInV8ExecuteOfTopEvents(values, model); 30 addPercentageInV8ExecuteOfTopEvents(values, model);
31 addTotalPercentageInV8Execute(values, model); 31 addTotalPercentageInV8Execute(values, model);
32 addV8ExecuteMutatorUtilization(values, model); 32 addV8ExecuteMutatorUtilization(values, model);
33 } 33 }
34 34
35 tr.metrics.MetricRegistry.register(gcMetric); 35 tr.metrics.MetricRegistry.register(gcMetric, {
36 histogramNames: new Set([]),
37 });
36 38
37 var timeDurationInMs_smallerIsBetter = 39 var timeDurationInMs_smallerIsBetter =
38 tr.b.Unit.byName.timeDurationInMs_smallerIsBetter; 40 tr.b.Unit.byName.timeDurationInMs_smallerIsBetter;
39 var percentage_biggerIsBetter = 41 var percentage_biggerIsBetter =
40 tr.b.Unit.byName.normalizedPercentage_biggerIsBetter; 42 tr.b.Unit.byName.normalizedPercentage_biggerIsBetter;
41 var percentage_smallerIsBetter = 43 var percentage_smallerIsBetter =
42 tr.b.Unit.byName.normalizedPercentage_smallerIsBetter; 44 tr.b.Unit.byName.normalizedPercentage_smallerIsBetter;
43 45
44 // 0.1 steps from 0 to 20 since it is the most common range. 46 // 0.1 steps from 0 to 20 since it is the most common range.
45 // Exponentially increasing steps from 20 to 200. 47 // Exponentially increasing steps from 20 to 200.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 } 331 }
330 ); 332 );
331 } 333 }
332 334
333 return { 335 return {
334 gcMetric, 336 gcMetric,
335 WINDOW_SIZE_MS, // For testing purposes only. 337 WINDOW_SIZE_MS, // For testing purposes only.
336 }; 338 };
337 }); 339 });
338 </script> 340 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/v8/execution_metric.html ('k') | tracing/tracing/metrics/v8/runtime_stats_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698