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

Side by Side Diff: tracing/tracing/metrics/v8/v8_metrics.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/memory_metric.html"> 9 <link rel="import" href="/tracing/metrics/system_health/memory_metric.html">
10 <link rel="import" href="/tracing/metrics/v8/execution_metric.html"> 10 <link rel="import" href="/tracing/metrics/v8/execution_metric.html">
11 <link rel="import" href="/tracing/metrics/v8/gc_metric.html"> 11 <link rel="import" href="/tracing/metrics/v8/gc_metric.html">
12 12
13 <script> 13 <script>
14 'use strict'; 14 'use strict';
15 15
16 tr.exportTo('tr.metrics.v8', function() { 16 tr.exportTo('tr.metrics.v8', function() {
17 function v8AndMemoryMetrics(values, model) { 17 function v8AndMemoryMetrics(values, model) {
18 tr.metrics.v8.executionMetric(values, model); 18 tr.metrics.v8.executionMetric(values, model);
19 tr.metrics.v8.gcMetric(values, model); 19 tr.metrics.v8.gcMetric(values, model);
20 tr.metrics.sh.memoryMetric(values, model, 20 tr.metrics.sh.memoryMetric(values, model,
21 {rangeOfInterest: tr.metrics.v8.utils.rangeForMemoryDumps(model)}); 21 {rangeOfInterest: tr.metrics.v8.utils.rangeForMemoryDumps(model)});
22 } 22 }
23 23
24 tr.metrics.MetricRegistry.register(v8AndMemoryMetrics); 24 tr.metrics.MetricRegistry.register(v8AndMemoryMetrics, {
25 histogramNames: new Set([]),
26 });
25 27
26 return { 28 return {
27 v8AndMemoryMetrics, 29 v8AndMemoryMetrics,
28 }; 30 };
29 }); 31 });
30 </script> 32 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/v8/runtime_stats_metric.html ('k') | tracing/tracing/ui/side_panel/metrics_side_panel_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698