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

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

Issue 2995843002: Merge iteration_helpers into utils.html. (Closed)
Patch Set: Created 3 years, 4 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/iteration_helpers.html">
9 <link rel="import" href="/tracing/base/math/statistics.html"> 8 <link rel="import" href="/tracing/base/math/statistics.html">
9 <link rel="import" href="/tracing/base/utils.html">
10 <link rel="import" href="/tracing/base/xhr.html"> 10 <link rel="import" href="/tracing/base/xhr.html">
11 11
12 <script> 12 <script>
13 'use strict'; 13 'use strict';
14 /* eslint-disable no-console */ 14 /* eslint-disable no-console */
15 15
16 const escapeChars = s => s.replace(/[\:|=\/#&,]/g, '_'); 16 const escapeChars = s => s.replace(/[\:|=\/#&,]/g, '_');
17 17
18 function findUnescapedKey(escaped, d) { 18 function findUnescapedKey(escaped, d) {
19 if (!d) { 19 if (!d) {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 }; 217 };
218 218
219 if (tr.isHeadless) { 219 if (tr.isHeadless) {
220 const [method, ...rest] = sys.argv.slice(1); 220 const [method, ...rest] = sys.argv.slice(1);
221 if (SampleComparison[method]) { 221 if (SampleComparison[method]) {
222 console.log(JSON.stringify(SampleComparison[method](...rest))); 222 console.log(JSON.stringify(SampleComparison[method](...rest)));
223 } 223 }
224 } 224 }
225 </script> 225 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/extras/tquery/tquery_test.html ('k') | tracing/tracing/metrics/metric_registry.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698