| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import json |
| 6 import tempfile |
| 7 |
| 8 from tracing.value import add_shared_diagnostic |
| 9 |
| 10 def AddRevisionInfo(histograms_json_filename, chromium, v8, catapult, angle, |
| 11 skia, webrtc): |
| 12 revision_info = { |
| 13 'chromium': chromium, |
| 14 'v8': v8, |
| 15 'catapult': catapult, |
| 16 'angle': angle, |
| 17 'skia': skia, |
| 18 'webrtc': webrtc, |
| 19 } |
| 20 |
| 21 with tempfile.NamedTemporaryFile() as diagnostic_file: |
| 22 json.dump(revision_info, diagnostic_file) |
| 23 return add_shared_diagnostic.AddSharedDiagnostic( |
| 24 histograms_json_filename, 'revisions', diagnostic_file.name) |
| OLD | NEW |