diff options
author | 2013-02-06 20:51:55 +0000 | |
---|---|---|
committer | 2013-02-06 20:51:55 +0000 | |
commit | 92b0f51b9bd33e661f9c249a55bf285a151813ef (patch) | |
tree | 71550f227dfa32b744675ddef07e80933aa1f7c2 | |
parent | 0b256e1fefa9e0e99ef8af603454316312aedf7d (diff) |
Updates gen_skp_ranges.py on recent changes of bench names, storage locations, etc.
Sample command: bench/gen_skp_ranges.py -r 7621:7621
It is slow due to cloud storage slowness. You can download the bench logs using gsutil and set the -d flag to make it super fast.
Review URL: https://codereview.appspot.com/7307052
git-svn-id: http://skia.googlecode.com/svn/trunk@7629 2bbb7eff-a529-9590-31e7-b0007b416f81
-rwxr-xr-x | bench/gen_skp_ranges.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/bench/gen_skp_ranges.py b/bench/gen_skp_ranges.py index 575db375e4..8ba2feffe3 100755 --- a/bench/gen_skp_ranges.py +++ b/bench/gen_skp_ranges.py @@ -40,10 +40,10 @@ BENCH_LB = 0.85 # performance tunings. BENCH_ALLOWED_NOISE = 10 -# List of platforms to track. -PLATFORMS = ['Mac_Float_Bench_32', +# List of platforms to track. Feel free to change it to meet your needs. +PLATFORMS = [#'Mac_Float_Bench_32', 'Nexus10_4-1_Float_Bench_32', - 'Shuttle_Ubuntu12_ATI5770_Float_Bench_32', + #'Shuttle_Ubuntu12_ATI5770_Float_Bench_32', ] # Filter for configs of no interest. They are old config names replaced by more @@ -93,7 +93,8 @@ def OutputSkpBenchExpectations(rev_min, rev_max, representation_alg): uri = boto.storage_uri(URI_BUCKET, GOOGLE_STORAGE_URI_SCHEME) for obj in uri.get_bucket(): # Filters out non-skp-bench files. - if (not obj.name.startswith('perfdata/Skia_') or + if ((not obj.name.startswith('perfdata/Skia_') and + not obj.name.startswith('playback/perfdata/Skia_')) or obj.name.find('_data_skp_') < 0): continue # Ignores uninterested platforms. @@ -101,22 +102,19 @@ def OutputSkpBenchExpectations(rev_min, rev_max, representation_alg): if platform not in PLATFORMS: continue # Filters by revision. + to_filter = True for rev in range(rev_min, rev_max + 1): - if '_r%s_' % rev not in obj.name: - continue - + if '_r%s_' % rev in obj.name: + to_filter = False + break + if to_filter: + continue contents = cStringIO.StringIO() obj.get_file(contents) for point in bench_util.parse('', contents.getvalue().split('\n'), representation_alg): if point.config in CONFIGS_TO_FILTER: continue - # TODO(bensong): the filtering below is only needed during skp generation - # system transitioning. Change it once the new system (bench name starts - # with http) is stable for the switch-over, and delete it once we - # deprecate the old ones. - if point.bench.startswith('http'): - continue key = '%s_%s_%s,%s-%s' % (point.bench, point.config, point.time_type, platform, representation_alg) |