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

Unified Diff: mojo/devtools/common/mojo_benchmark

Issue 1422983002: Fix format produced by chart data recorder. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « mojo/devtools/common/devtoolslib/perf_dashboard_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/devtools/common/mojo_benchmark
diff --git a/mojo/devtools/common/mojo_benchmark b/mojo/devtools/common/mojo_benchmark
index 84134900fa705fd4028b7c2932c50deaa1fa3703..ff50689e0ab30c3b2d3745109a56221266e7c2ff 100755
--- a/mojo/devtools/common/mojo_benchmark
+++ b/mojo/devtools/common/mojo_benchmark
@@ -6,11 +6,12 @@
"""Runner for Mojo application benchmarks."""
import argparse
+import json
import logging
-import sys
-import time
import os.path
import re
+import sys
+import time
from devtoolslib import shell_arguments
from devtoolslib import shell_config
@@ -244,7 +245,8 @@ def main():
exit_code = 1
if script_args.chart_data_output_file:
- script_args.chart_data_output_file.write(chart_data_recorder.get_json())
+ script_args.chart_data_output_file.write(
+ json.dumps(chart_data_recorder.get_chart_data()))
script_args.chart_data_output_file.write('\n')
return exit_code
« no previous file with comments | « mojo/devtools/common/devtoolslib/perf_dashboard_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698