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

Unified Diff: tracing/bin/results2json

Issue 2474573002: Convert chart-json to Histograms. (Closed)
Patch Set: . Created 4 years, 1 month 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 | « telemetry/telemetry/internal/results/results_options.py ('k') | tracing/bin/valueset2html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/bin/results2json
diff --git a/tracing/bin/results2json b/tracing/bin/results2json
index 7b3b2b24dad43666de968f3b872755dcb671cbd0..9a8195e13e909ccb9cfa96967e6362c26f736e3f 100755
--- a/tracing/bin/results2json
+++ b/tracing/bin/results2json
@@ -26,7 +26,8 @@ def main():
help='Show this help message and exit.')
args = parser.parse_args()
- histograms = results_renderer.ReadExistingResults(open(args.html_path, 'r'))
+ histograms = results_renderer.ReadExistingResults(
+ open(args.html_path, 'r').read())
if os.path.exists(args.json_path):
histograms.extend(json.load(open(args.json_path, 'r')))
json.dump(histograms, open(args.json_path, 'w'))
« no previous file with comments | « telemetry/telemetry/internal/results/results_options.py ('k') | tracing/bin/valueset2html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698