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

Unified Diff: tools/telemetry/telemetry/timeline/inspector_timeline_data.py

Issue 315393004: Make timeline_data indented JSON. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: always indent=4 Created 6 years, 4 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 | tools/telemetry/telemetry/timeline/tracing_timeline_data.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/timeline/inspector_timeline_data.py
diff --git a/tools/telemetry/telemetry/timeline/inspector_timeline_data.py b/tools/telemetry/telemetry/timeline/inspector_timeline_data.py
index 539888c2e4b2d0fe66c57277626ee920aadaa88d..659ef8f235d5fc1362a414e9575fbbb2c1dd59f6 100644
--- a/tools/telemetry/telemetry/timeline/inspector_timeline_data.py
+++ b/tools/telemetry/telemetry/timeline/inspector_timeline_data.py
@@ -14,7 +14,7 @@ class InspectorTimelineData(TimelineData):
def Serialize(self, f):
"""Serializes the trace result to a file-like object"""
f.write('{"traceEvents":')
- json.dump(self._event_data, f)
+ json.dump(self._event_data, f, indent=4)
f.write('}')
def EventData(self):
« no previous file with comments | « no previous file | tools/telemetry/telemetry/timeline/tracing_timeline_data.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698