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

Unified Diff: tracing/tracing/value/convert_chart_json.py

Issue 2528113003: Revert of Convert chart-json to Histograms. (Closed)
Patch Set: 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
Index: tracing/tracing/value/convert_chart_json.py
diff --git a/tracing/tracing/value/convert_chart_json.py b/tracing/tracing/value/convert_chart_json.py
deleted file mode 100755
index 10dabee5ccf7991e2a2d12a0b1acace82a7c08e3..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/convert_chart_json.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-import tracing_project
-import vinn
-
-
-def ConvertChartJson(chart_json):
- """Convert chart_json to Histograms.
-
- Args:
- chart_json: path to a file containing chart-json
-
- Returns:
- a Vinn result object whose 'returncode' indicates whether there was an
- exception, and whose 'stdout' contains HistogramSet json.
- """
- return vinn.RunFile(
- os.path.join(os.path.dirname(__file__),
- 'convert_chart_json_cmdline.html'),
- source_paths=tracing_project.TracingProject().source_paths,
- js_args=[os.path.abspath(chart_json)])
« no previous file with comments | « tracing/tracing/value/chart_json_converter_test.html ('k') | tracing/tracing/value/convert_chart_json_cmdline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698