Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: tracing/tracing_build/trace2html.py

Issue 1376953005: Move tracing/third_party/tvcm -> third_party/py_vulcanize. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 argparse 5 import argparse
6 import codecs 6 import codecs
7 import base64 7 import base64
8 import gzip 8 import gzip
9 import json 9 import json
10 import os 10 import os
11 import StringIO 11 import StringIO
12 import sys 12 import sys
13 13
14 import tracing_project 14 import tracing_project
15 15
16 from tvcm import generate 16 from py_vulcanize import generate
17 17
18 18
19 def Main(argv): 19 def Main(argv):
20 20
21 parser = argparse.ArgumentParser( 21 parser = argparse.ArgumentParser(
22 usage='%(prog)s <options> trace_file1 [trace_file2 ...]', 22 usage='%(prog)s <options> trace_file1 [trace_file2 ...]',
23 epilog='Takes the provided trace file and produces a standalone HTML\n' 23 epilog='Takes the provided trace file and produces a standalone HTML\n'
24 'file that contains both the trace and the trace viewer.') 24 'file that contains both the trace and the trace viewer.')
25 25
26 project = tracing_project.TracingProject() 26 project = tracing_project.TracingProject()
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 with open(filename, 'r') as f: 108 with open(filename, 'r') as f:
109 trace_data = f.read() 109 trace_data = f.read()
110 try: 110 try:
111 trace_data = json.loads(trace_data) 111 trace_data = json.loads(trace_data)
112 except ValueError: 112 except ValueError:
113 pass 113 pass
114 trace_data_list.append(trace_data) 114 trace_data_list.append(trace_data)
115 115
116 title = "Trace from %s" % ','.join(trace_filenames) 116 title = "Trace from %s" % ','.join(trace_filenames)
117 WriteHTMLForTraceDataToFile(trace_data_list, title, output_file, config_name) 117 WriteHTMLForTraceDataToFile(trace_data_list, title, output_file, config_name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698