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