blob: 54ac610853a8036cdd814eb76d5c2875ea06d505 [file]
#!/usr/bin/env python
# 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.
"""Upload benchmark performance data results from archived webpages.
This module can be run from the command-line like this:
cd buildbot/third_party/chromium_buildbot/slave/\
Test-Ubuntu12-ShuttleA-ATI5770-x86_64-Release/build/trunk
PYTHONPATH=../../../../site_config:\
../../../../scripts \
python ../../../../../../slave/skia_slave_scripts/\
upload_webpage_picture_bench_results.py \
--configuration "" --target_platform "" --revision 0 \
--make_flags "" --test_args "" --gm_args "" \
--bench_args "" -perf_output_basedir "../../../../perfdata" \
--builder_name Test-Ubuntu12-ShuttleA-ATI5770-x86_64-Release \
--got_revision 0 --dest_gsbase "gs://rmistry"
"""
from build_step import BuildStep
from upload_bench_results import UploadBenchResults
import sys
class UploadWebpagePictureBenchResults(UploadBenchResults):
"""Upload benchmark performance data results from archived webpages."""
def __init__(self, attempts=5, **kwargs):
"""Create an instance of UploadWebpagePictureBenchResults."""
super(UploadBenchResults, self).__init__(attempts=attempts, **kwargs)
def _GetPerfDataDir(self):
"""Points to the local playback perf data directory."""
return self._local_playback_dirs.PlaybackPerfDataDir()
def _GetBucketSubdir(self):
"""Results the playback perf data bucket."""
return self._storage_playback_dirs.PlaybackPerfDataDir()
if '__main__' == __name__:
sys.exit(BuildStep.RunBuildStep(UploadWebpagePictureBenchResults))