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

Side by Side Diff: tracing/tracing/metrics/spa_navigation_metric.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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/range.html"> 8 <link rel="import" href="/tracing/base/math/range.html">
9 <link rel="import" href="/tracing/metrics/metric_registry.html"> 9 <link rel="import" href="/tracing/metrics/metric_registry.html">
10 <link rel="import" href="/tracing/metrics/spa_navigation_helper.html"> 10 <link rel="import" href="/tracing/metrics/spa_navigation_helper.html">
11 <link rel="import" href="/tracing/value/histogram.html"> 11 <link rel="import" href="/tracing/value/histogram.html">
12 12
13 <script> 13 <script>
14 'use strict'; 14 'use strict';
15 15
16 tr.exportTo('tr.metrics', function() { 16 tr.exportTo('tr.metrics', function() {
17 const SPA_NAVIGATION_START_TO_FIRST_PAINT_DURATION_BIN_BOUNDARY = 17 const SPA_NAVIGATION_START_TO_FIRST_PAINT_DURATION_BIN_BOUNDARY =
18 tr.v.HistogramBinBoundaries.createExponential(1, 1000, 50); 18 tr.v.HistogramBinBoundaries.createExponential(1, 1000, 50);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 histograms.addHistogram(histogram); 83 histograms.addHistogram(histogram);
84 } 84 }
85 85
86 tr.metrics.MetricRegistry.register(spaNavigationMetric); 86 tr.metrics.MetricRegistry.register(spaNavigationMetric);
87 87
88 return { 88 return {
89 spaNavigationMetric, 89 spaNavigationMetric,
90 }; 90 };
91 }); 91 });
92 </script> 92 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/sample_metric.html ('k') | tracing/tracing/metrics/system_health/cpu_time_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698