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

Unified Diff: tracing/bin/histograms2csv

Issue 3003163002: Add CsvOutputFormatter to Telemetry. (Closed)
Patch Set: Created 3 years, 4 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 | « telemetry/telemetry/internal/results/results_options.py ('k') | tracing/tracing/base/unit.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/bin/histograms2csv
diff --git a/tracing/bin/histograms2csv b/tracing/bin/histograms2csv
index f39da4f9cbde36008e4187f3cb8bd83c75ef1831..13b8df01fdde0656cd7610b7d2d13e778da361ad 100755
--- a/tracing/bin/histograms2csv
+++ b/tracing/bin/histograms2csv
@@ -14,11 +14,8 @@ tracing_path = os.path.abspath(os.path.join(
sys.path.append(tracing_path)
import tracing_project
tracing_project.UpdateSysPathIfNeeded()
-import vinn
-
-_HISTOGRAMS_TO_CSV_CMD_LINE = os.path.join(
- tracing_path, 'tracing', 'value', 'histograms_to_csv_cmdline.html')
+from tracing.value import histograms_to_csv
def main():
@@ -32,10 +29,7 @@ def main():
parser.add_argument('-h', '--help', action='help',
help='Show this help message and exit.')
args = parser.parse_args()
- result = vinn.RunFile(
- _HISTOGRAMS_TO_CSV_CMD_LINE,
- source_paths=list(tracing_project.TracingProject().source_paths),
- js_args=[os.path.abspath(args.json_path)])
+ result = histograms_to_csv.HistogramsToCsv(args.json_path)
if result.returncode != 0:
sys.stderr.write(result.stdout)
else:
« no previous file with comments | « telemetry/telemetry/internal/results/results_options.py ('k') | tracing/tracing/base/unit.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698