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

Unified Diff: tools/telemetry/telemetry/block_page_benchmark_results.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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
Index: tools/telemetry/telemetry/block_page_benchmark_results.py
diff --git a/tools/telemetry/telemetry/block_page_benchmark_results.py b/tools/telemetry/telemetry/block_page_benchmark_results.py
deleted file mode 100644
index f76394cd9058cf3bef617d79e999cb914e3a914f..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/block_page_benchmark_results.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright (c) 2012 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
-
-from telemetry.page_benchmark_results import PageBenchmarkResults
-
-class BlockPageBenchmarkResults(PageBenchmarkResults):
- def __init__(self, output_file):
- super(BlockPageBenchmarkResults, self).__init__()
- self._output_file = output_file
-
- def DidMeasurePage(self):
- page_values = self.values_for_current_page
-
- lines = ['url: %s' %
- self.values_for_current_page.page.url]
- sorted_measurement_names = page_values.measurement_names
- sorted_measurement_names.sort()
-
- for measurement_name in sorted_measurement_names:
- value = page_values.FindValueByMeasurementName(measurement_name)
- lines.append('%s (%s): %s' %
- (measurement_name,
- value.units,
- value.output_value))
- for line in lines:
- self._output_file.write(line)
- self._output_file.write(os.linesep)
- self._output_file.write(os.linesep)
-
- super(BlockPageBenchmarkResults, self).DidMeasurePage()
« no previous file with comments | « tools/telemetry/telemetry/android_platform.py ('k') | tools/telemetry/telemetry/block_page_benchmark_results_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698