| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 """Upload benchmark performance data results from archived webpages. | |
| 7 | |
| 8 This module can be run from the command-line like this: | |
| 9 | |
| 10 cd buildbot/third_party/chromium_buildbot/slave/\ | |
| 11 Test-Ubuntu12-ShuttleA-ATI5770-x86_64-Release/build/trunk | |
| 12 | |
| 13 PYTHONPATH=../../../../site_config:\ | |
| 14 ../../../../scripts \ | |
| 15 python ../../../../../../slave/skia_slave_scripts/\ | |
| 16 upload_webpage_picture_bench_results.py \ | |
| 17 --configuration "" --target_platform "" --revision 0 \ | |
| 18 --make_flags "" --test_args "" --gm_args "" \ | |
| 19 --bench_args "" -perf_output_basedir "../../../../perfdata" \ | |
| 20 --builder_name Test-Ubuntu12-ShuttleA-ATI5770-x86_64-Release \ | |
| 21 --got_revision 0 --dest_gsbase "gs://rmistry" | |
| 22 | |
| 23 """ | |
| 24 | |
| 25 from build_step import BuildStep | |
| 26 from upload_bench_results import UploadBenchResults | |
| 27 | |
| 28 import sys | |
| 29 | |
| 30 | |
| 31 class UploadWebpagePictureBenchResults(UploadBenchResults): | |
| 32 """Upload benchmark performance data results from archived webpages.""" | |
| 33 | |
| 34 def __init__(self, attempts=5, **kwargs): | |
| 35 """Create an instance of UploadWebpagePictureBenchResults.""" | |
| 36 super(UploadBenchResults, self).__init__(attempts=attempts, **kwargs) | |
| 37 | |
| 38 def _GetPerfDataDir(self): | |
| 39 """Points to the local playback perf data directory.""" | |
| 40 return self._local_playback_dirs.PlaybackPerfDataDir() | |
| 41 | |
| 42 def _GetBucketSubdir(self): | |
| 43 """Results the playback perf data bucket.""" | |
| 44 return self._storage_playback_dirs.PlaybackPerfDataDir() | |
| 45 | |
| 46 | |
| 47 if '__main__' == __name__: | |
| 48 sys.exit(BuildStep.RunBuildStep(UploadWebpagePictureBenchResults)) | |
| OLD | NEW |