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

Side by Side Diff: tracing/tracing/value/histograms_to_csv_cmdline.html

Issue 3003163002: Add CsvOutputFormatter to Telemetry. (Closed)
Patch Set: Created 3 years, 3 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/xhr.html"> 8 <link rel="import" href="/tracing/base/xhr.html">
9 <link rel="import" href="/tracing/value/csv_builder.html"> 9 <link rel="import" href="/tracing/value/csv_builder.html">
10 <link rel="import" href="/tracing/value/histogram_set.html"> 10 <link rel="import" href="/tracing/value/histogram_set.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 if (tr.isHeadless) { 16 if (tr.isHeadless) {
17 const histograms = new tr.v.HistogramSet(); 17 const histograms = new tr.v.HistogramSet();
18 histograms.importDicts(JSON.parse(tr.b.getSync('file://' + sys.argv[1]))); 18 histograms.importDicts(JSON.parse(tr.b.getSync('file://' + sys.argv[1])));
19 histograms.resolveRelatedHistograms();
19 const csv = new tr.v.CSVBuilder(histograms); 20 const csv = new tr.v.CSVBuilder(histograms);
20 csv.build(); 21 csv.build();
21 console.log(csv.toString()); 22 console.log(csv.toString());
22 } 23 }
23 </script> 24 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/value/histograms_to_csv.py ('k') | tracing/tracing/value/merge_histograms_cmdline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698