| OLD | NEW |
| 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> |
| OLD | NEW |