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

Unified Diff: telemetry/telemetry/internal/results/html2_output_formatter.py

Issue 2531423002: Plumb label, benchmarkStartMs thru ChartJsonConverter. (Closed)
Patch Set: fix style 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 | « no previous file | tracing/tracing/value/chart_json_converter.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/results/html2_output_formatter.py
diff --git a/telemetry/telemetry/internal/results/html2_output_formatter.py b/telemetry/telemetry/internal/results/html2_output_formatter.py
index e7a8d4d102aa890cca61071f37406ddfd1b79868..0905fed75b14cff1ee17243d687873124776aa86 100644
--- a/telemetry/telemetry/internal/results/html2_output_formatter.py
+++ b/telemetry/telemetry/internal/results/html2_output_formatter.py
@@ -30,6 +30,10 @@ class Html2OutputFormatter(output_formatter.OutputFormatter):
chart_json = chart_json_output_formatter.ResultsAsChartDict(
self._metadata, page_test_results.all_page_specific_values,
page_test_results.all_summary_values)
+ info = page_test_results.iteration_info
+ chart_json['label'] = info.label
+ chart_json['benchmarkStartMs'] = info.benchmark_start_ms
+
file_descriptor, chart_json_path = tempfile.mkstemp()
os.close(file_descriptor)
json.dump(chart_json, file(chart_json_path, 'w'))
« no previous file with comments | « no previous file | tracing/tracing/value/chart_json_converter.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698