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

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

Issue 2556213002: Revert of Replace ValueSetOutputFormatter with HistogramSetJsonOutputFormatter. (Closed)
Patch Set: Created 4 years 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: telemetry/telemetry/internal/results/valueset_output_formatter.py
diff --git a/telemetry/telemetry/internal/results/valueset_output_formatter.py b/telemetry/telemetry/internal/results/valueset_output_formatter.py
new file mode 100644
index 0000000000000000000000000000000000000000..52af0f1d1cba1aab3886a3e3050c4ba8e807e2d1
--- /dev/null
+++ b/telemetry/telemetry/internal/results/valueset_output_formatter.py
@@ -0,0 +1,15 @@
+# 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 json
+
+from telemetry.internal.results import output_formatter
+
+
+class ValueSetOutputFormatter(output_formatter.OutputFormatter):
+ def __init__(self, output_stream):
+ super(ValueSetOutputFormatter, self).__init__(output_stream)
+
+ def Format(self, page_test_results):
+ json.dump(page_test_results.value_set, self.output_stream)

Powered by Google App Engine
This is Rietveld 408576698