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/histogram_set.html"> | 9 <link rel="import" href="/tracing/value/histogram_set.html"> |
10 | 10 |
11 <script> | 11 <script> |
12 'use strict'; | 12 'use strict'; |
13 /* eslint-disable no-console */ | 13 /* eslint-disable no-console */ |
14 | 14 |
15 if (tr.isHeadless) { | 15 if (tr.isHeadless) { |
16 const histograms = new tr.v.HistogramSet(); | 16 const histograms = new tr.v.HistogramSet(); |
17 histograms.importDicts(JSON.parse(tr.b.getSync('file://' + sys.argv[1]))); | 17 histograms.importDicts(JSON.parse(tr.b.getSync('file://' + sys.argv[1]))); |
| 18 histograms.resolveRelatedHistograms(); |
18 histograms.addSharedDiagnostic(sys.argv[2], tr.v.d.Diagnostic.fromDict( | 19 histograms.addSharedDiagnostic(sys.argv[2], tr.v.d.Diagnostic.fromDict( |
19 JSON.parse(tr.b.getSync('file://' + sys.argv[3])))); | 20 JSON.parse(tr.b.getSync('file://' + sys.argv[3])))); |
20 console.log(JSON.stringify(histograms.asDicts())); | 21 console.log(JSON.stringify(histograms.asDicts())); |
21 } | 22 } |
22 </script> | 23 </script> |
OLD | NEW |