[Telemetry] Add indentation to json_output & chart_json_output.
commitcc27e302c16fcf0d0108e077567cd2d748d6740d
authornednguyen <nednguyen@google.com>
Thu, 19 Feb 2015 23:51:15 +0000 (19 15:51 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Feb 2015 23:52:04 +0000 (19 23:52 +0000)
treecbb61d9a6fe62338abe9d7a788e2c7ab3b1b048a
parent971fb92c8e09f93b8e06c5647784d3e4a3c9484f
[Telemetry] Add indentation to json_output & chart_json_output.

Rationale: ocassionally I find it useful to look at json_output to debug.
Indenting the file make it a lot more readable. The downside is this increases
the file size, but it shouldn't matter for small files like these.

An example Results.json with ~2000 values tested on local machine:
Without indent: 472K
With indentation: 692K

Review URL: https://codereview.chromium.org/940123003

Cr-Commit-Position: refs/heads/master@{#317175}
tools/telemetry/telemetry/results/chart_json_output_formatter.py
tools/telemetry/telemetry/results/json_output_formatter.py