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

Unified Diff: tools/telemetry/telemetry/results/results_options.py

Issue 631213003: Add CSV export, suitable for use with "pivot tables" in spreadsheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments (remove unnecessary default param) Created 6 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 | « tools/telemetry/telemetry/results/csv_pivot_table_output_formatter_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/results/results_options.py
diff --git a/tools/telemetry/telemetry/results/results_options.py b/tools/telemetry/telemetry/results/results_options.py
index ebb71320df805e08912ffcccf5ebc1a8d2fe11b6..410dfa1f29c84c6cd8e2d9d06431d72e4ec33f8b 100644
--- a/tools/telemetry/telemetry/results/results_options.py
+++ b/tools/telemetry/telemetry/results/results_options.py
@@ -10,6 +10,7 @@ from telemetry.core import util
from telemetry.results import buildbot_output_formatter
from telemetry.results import chart_json_output_formatter
from telemetry.results import csv_output_formatter
+from telemetry.results import csv_pivot_table_output_formatter
from telemetry.results import gtest_progress_reporter
from telemetry.results import html_output_formatter
from telemetry.results import json_output_formatter
@@ -18,7 +19,7 @@ from telemetry.results import progress_reporter
# Allowed output formats. The default is the first item in the list.
_OUTPUT_FORMAT_CHOICES = ('html', 'buildbot', 'block', 'csv', 'gtest', 'json',
- 'chartjson', 'none')
+ 'chartjson', 'csv-pivot-table', 'none')
def AddResultsOptions(parser):
@@ -35,7 +36,8 @@ def AddResultsOptions(parser):
help='Redirects output to a file. Defaults to stdout.')
group.add_option('--output-trace-tag',
default='',
- help='Append a tag to the key of each result trace.')
+ help='Append a tag to the key of each result trace. Use '
+ 'with html, buildbot, csv-pivot-table output formats.')
group.add_option('--reset-results', action='store_true',
help='Delete all stored results.')
group.add_option('--upload-results', action='store_true',
@@ -97,6 +99,10 @@ def CreateResults(benchmark_metadata, options):
if output_format == 'csv':
output_formatters.append(csv_output_formatter.CsvOutputFormatter(
output_stream))
+ elif output_format == 'csv-pivot-table':
+ output_formatters.append(
+ csv_pivot_table_output_formatter.CsvPivotTableOutputFormatter(
+ output_stream, trace_tag=options.output_trace_tag))
elif output_format == 'buildbot':
output_formatters.append(
buildbot_output_formatter.BuildbotOutputFormatter(
« no previous file with comments | « tools/telemetry/telemetry/results/csv_pivot_table_output_formatter_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698