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

Unified Diff: tools/android/loading/trace_to_chrome_trace.py

Issue 1926513003: clovis: about:tracing traces don't need to be gzipped. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/trace_to_chrome_trace.py
diff --git a/tools/android/loading/trace_to_chrome_trace.py b/tools/android/loading/trace_to_chrome_trace.py
index 382d87d1e3db74522a085b6c931f03c5d48ef240..23c3632a095cd66cd0e20a8dc2785b9265dd0203 100755
--- a/tools/android/loading/trace_to_chrome_trace.py
+++ b/tools/android/loading/trace_to_chrome_trace.py
@@ -5,12 +5,11 @@
"""Convert trace output for Chrome.
-Takes a loading trace from 'analyze.py log_requests' and outputs a zip'd json
+Takes a loading trace from 'analyze.py log_requests' and outputs a json file
that can be loaded by chrome's about:tracing..
"""
import argparse
-import gzip
import json
if __name__ == '__main__':
@@ -18,6 +17,6 @@ if __name__ == '__main__':
parser.add_argument('input')
parser.add_argument('output')
args = parser.parse_args()
- with gzip.GzipFile(args.output, 'w') as output_f, file(args.input) as input_f:
+ with file(args.output, 'w') as output_f, file(args.input) as input_f:
events = json.load(input_f)['tracing_track']['events']
json.dump({'traceEvents': events, 'metadata': {}}, output_f)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698