| OLD | NEW |
| 1 # Copyright 2016 the V8 project authors. All rights reserved. | 1 # Copyright 2016 the V8 project authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 import json | 7 import json |
| 8 import re | 8 import re |
| 9 import argparse | 9 import argparse |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 "traces.") | 47 "traces.") |
| 48 parser.add_argument("file_name", metavar="JSON File", | 48 parser.add_argument("file_name", metavar="JSON File", |
| 49 help="turbo trace json file.") | 49 help="turbo trace json file.") |
| 50 | 50 |
| 51 args = parser.parse_args() | 51 args = parser.parse_args() |
| 52 | 52 |
| 53 with open(args.file_name, 'r') as json_file: | 53 with open(args.file_name, 'r') as json_file: |
| 54 json_obj = json.load(json_file) | 54 json_obj = json.load(json_file) |
| 55 | 55 |
| 56 known_addrs = set() | 56 known_addrs = set() |
| OLD | NEW |