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

Side by Side Diff: tracing/tracing/value/histograms_to_csv.py

Issue 3003163002: Add CsvOutputFormatter to Telemetry. (Closed)
Patch Set: Created 3 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import os
6 import vinn
7 import tracing_project
8
9 def HistogramsToCsv(json_path):
10 """Convert HistogramSet JSON to CSV.
11
12 Args:
13 json_path: path to a file containing HistogramSet JSON
14
15 Returns:
16 a Vinn result object whose 'returncode' indicates whether there was an
17 exception, and whose 'stdout' contains CSV.
18 """
19 return vinn.RunFile(
20 os.path.join(os.path.dirname(__file__), 'histograms_to_csv_cmdline.html'),
21 source_paths=list(tracing_project.TracingProject().source_paths),
22 js_args=[os.path.abspath(json_path)])
OLDNEW
« no previous file with comments | « tracing/tracing/value/histogram.html ('k') | tracing/tracing/value/histograms_to_csv_cmdline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698