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

Unified Diff: sky/tools/skydb

Issue 1065093003: Generate trace header/footer in tracing consumer instead of service (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « services/tracing/tracing_app.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/skydb
diff --git a/sky/tools/skydb b/sky/tools/skydb
index f8757f2557f430964e5dfc112f152ca042926d3c..8ef14abf07f43dc834d5250f5766eac699381c19 100755
--- a/sky/tools/skydb
+++ b/sky/tools/skydb
@@ -356,7 +356,9 @@ class SkyDebugger(object):
file_name = args.file_name
trace = self._send_command_to_sky('/stop_tracing').content
with open(file_name, "wb") as trace_file:
+ trace_file.write('{"traceEvents":[')
trace_file.write(trace)
+ trace_file.write(']}')
print "Trace saved in %s" % file_name
def stop_profiling_command(self, args):
« no previous file with comments | « services/tracing/tracing_app.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698