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

Side by Side Diff: slave/skia_slave_scripts/upload_webpage_picture_bench_results.py

Issue 648353002: Remove Skia's forked buildbot code (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Address comment Created 6 years, 2 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 unified diff | Download patch
OLDNEW
(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))
OLDNEW
« no previous file with comments | « slave/skia_slave_scripts/upload_skimage_results.py ('k') | slave/skia_slave_scripts/utils/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698