OLD | NEW |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 The Chromium 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 codecs | 5 import codecs |
6 import argparse | 6 import argparse |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 | 9 |
10 import tracing_project | 10 import tracing_project |
11 from tvcm import generate | 11 from py_vulcanize import generate |
12 | 12 |
13 | 13 |
14 def Main(argv): | 14 def Main(argv): |
15 | 15 |
16 parser = argparse.ArgumentParser( | 16 parser = argparse.ArgumentParser( |
17 usage='%(prog)s <options>', | 17 usage='%(prog)s <options>', |
18 epilog=('Produces a standalone HTML import that contains the\n' | 18 epilog=('Produces a standalone HTML import that contains the\n' |
19 'trace viewer.')) | 19 'trace viewer.')) |
20 | 20 |
21 project = tracing_project.TracingProject() | 21 project = tracing_project.TracingProject() |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 load_sequence = vulcanizer.CalcLoadSequenceForModuleNames( | 75 load_sequence = vulcanizer.CalcLoadSequenceForModuleNames( |
76 module_names) | 76 module_names) |
77 | 77 |
78 if report_deps: | 78 if report_deps: |
79 sys.stdout.write(vulcanizer.GetDepsGraphFromModuleNames(module_names)) | 79 sys.stdout.write(vulcanizer.GetDepsGraphFromModuleNames(module_names)) |
80 | 80 |
81 generate.GenerateStandaloneHTMLToFile( | 81 generate.GenerateStandaloneHTMLToFile( |
82 output_file, load_sequence, | 82 output_file, load_sequence, |
83 minify=minify, report_sizes=report_sizes, | 83 minify=minify, report_sizes=report_sizes, |
84 output_html_head_and_body=output_html_head_and_body) | 84 output_html_head_and_body=output_html_head_and_body) |
OLD | NEW |