Chromium Code Reviews| Index: tools/perf/benchmarks/media.py |
| diff --git a/tools/perf/benchmarks/media.py b/tools/perf/benchmarks/media.py |
| index e56c0796ff23d9dcdebaae1ac1efc39ae16eb67e..fb9ad3977b585c235c844c1fc631c0eba2c046d9 100644 |
| --- a/tools/perf/benchmarks/media.py |
| +++ b/tools/perf/benchmarks/media.py |
| @@ -40,7 +40,6 @@ class _MSEMeasurement(legacy_page_test.LegacyPageTest): |
| # android: See media.android.tough_video_cases below |
| -# crbug.com/565180: Only include cases that report time_to_play |
| @benchmark.Owner(emails=['crouleau@chromium.org'], |
| component='Internals>Media') |
| @benchmark.Disabled('android') |
| @@ -54,6 +53,27 @@ class MediaToughVideoCases(perf_benchmark.PerfBenchmark): |
| return 'media.tough_video_cases' |
| +@benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689. |
| +@benchmark.Owner(emails=['crouleau@chromium.org', 'videostack-eng@google.com'], |
| + component='Internals>Media') |
| +class MediaAndroidToughVideoCases(perf_benchmark.PerfBenchmark): |
| + """Obtains media metrics for key user scenarios on Android.""" |
| + test = media.Media |
| + tag = 'android' |
| + page_set = page_sets.ToughVideoCasesPageSet |
| + options = {'story_tag_filter_exclude': 'is_4k,is_50fps'} |
| + |
| + @classmethod |
| + def ShouldDisable(cls, possible_browser): |
| + if possible_browser.platform.GetOSName() != "android": |
|
nednguyen
2017/05/05 21:38:50
can you refactor 68 & 69 to "@benchmark.Disabled('
CalebRouleau
2017/05/06 05:48:19
Done.
|
| + return True |
| + return cls.IsSvelte(possible_browser) |
| + |
| + @classmethod |
| + def Name(cls): |
| + return 'media.android.tough_video_cases' |
| + |
| + |
| class _MediaTBMv2Benchmark(perf_benchmark.PerfBenchmark): |
| page_set = page_sets.ToughVideoCasesPageSet |
| @@ -73,6 +93,7 @@ class _MediaTBMv2Benchmark(perf_benchmark.PerfBenchmark): |
| return options |
| +# android: See media.android.tough_video_cases below |
| @benchmark.Owner(emails=['johnchen@chromium.org', 'crouleau@chromium.org'], |
| component='Internals>Media') |
| @benchmark.Disabled('android') |
| @@ -85,54 +106,6 @@ class MediaToughVideoCasesTBMv2(_MediaTBMv2Benchmark): |
| return 'media.tough_video_cases_tbmv2' |
| -# crbug.com/565180: Only include cases that don't report time_to_play |
| -@benchmark.Disabled('android') |
| -@benchmark.Owner(emails=['crouleau@chromium.org', 'videostack-eng@google.com'], |
| - component='Internals>Media') |
| -class MediaExtra(perf_benchmark.PerfBenchmark): |
| - """Obtains extra media metrics for key user scenarios.""" |
| - test = media.Media |
| - page_set = page_sets.ToughVideoCasesExtraPageSet |
| - |
| - @classmethod |
| - def Name(cls): |
| - return 'media.tough_video_cases_extra' |
| - |
| - |
| -@benchmark.Disabled('all') # crbug/676345 |
| -@benchmark.Owner(emails=['crouleau@chromium.org', 'videostack-eng@google.com'], |
| - component='Internals>Media') |
| -class MediaNetworkSimulation(perf_benchmark.PerfBenchmark): |
| - """Obtains media metrics under different network simulations.""" |
| - test = media.Media |
| - page_set = page_sets.MediaCnsCasesPageSet |
| - |
| - @classmethod |
| - def Name(cls): |
| - return 'media.media_cns_cases' |
| - |
| - |
| -@benchmark.Disabled('l', 'android-webview') # WebView: crbug.com/419689. |
| -@benchmark.Owner(emails=['crouleau@chromium.org', 'videostack-eng@google.com'], |
| - component='Internals>Media') |
| -class MediaAndroidToughVideoCases(perf_benchmark.PerfBenchmark): |
| - """Obtains media metrics for key user scenarios on Android.""" |
| - test = media.Media |
| - tag = 'android' |
| - page_set = page_sets.ToughVideoCasesPageSet |
| - options = {'story_tag_filter_exclude': 'is_4k,is_50fps'} |
| - |
| - @classmethod |
| - def ShouldDisable(cls, possible_browser): |
| - if possible_browser.platform.GetOSName() != "android": |
| - return True |
| - return cls.IsSvelte(possible_browser) |
| - |
| - @classmethod |
| - def Name(cls): |
| - return 'media.android.tough_video_cases' |
| - |
| - |
| @benchmark.Owner(emails=['johnchen@chromium.org', 'crouleau@chromium.org'], |
| component='Internals>Media') |
| @benchmark.Enabled('android') |
| @@ -166,46 +139,17 @@ class MediaAndroidToughVideoCasesTBMv2(_MediaTBMv2Benchmark): |
| '--disable-gesture-requirement-for-media-playback']) |
| -# This isn't running anywhere. See crbug/709161. |
| -@benchmark.Enabled('chromeos') |
| -@benchmark.Owner(emails=['crouleau@chromium.org'], |
| - component='Internals>Media') |
| -class MediaChromeOS4kOnly(perf_benchmark.PerfBenchmark): |
| - """Benchmark for media performance on ChromeOS using only is_4k test content. |
| - """ |
| - test = media.Media |
| - tag = 'chromeOS4kOnly' |
| - page_set = page_sets.ToughVideoCasesPageSet |
| - options = { |
| - 'story_tag_filter': 'is_4k', |
| - # Exclude is_50fps test files: crbug/331816 |
| - 'story_tag_filter_exclude': 'is_50fps' |
| - } |
| - |
| - @classmethod |
| - def Name(cls): |
| - return 'media.chromeOS4kOnly.tough_video_cases' |
| - |
| - |
| -# This isn't running anywhere. See crbug/709161. |
| -@benchmark.Enabled('chromeos') |
| -@benchmark.Owner(emails=['crouleau@chromium.org'], |
| +@benchmark.Disabled('all') # crbug/676345 |
| +@benchmark.Owner(emails=['crouleau@chromium.org', 'videostack-eng@google.com'], |
| component='Internals>Media') |
| -class MediaChromeOS(perf_benchmark.PerfBenchmark): |
| - """Benchmark for media performance on all ChromeOS platforms. |
| - |
| - This benchmark does not run is_4k content, there's a separate benchmark for |
| - that. |
| - """ |
| +class MediaNetworkSimulation(perf_benchmark.PerfBenchmark): |
| + """Obtains media metrics under different network simulations.""" |
| test = media.Media |
| - tag = 'chromeOS' |
| - page_set = page_sets.ToughVideoCasesPageSet |
| - # Exclude is_50fps test files: crbug/331816 |
| - options = {'story_tag_filter_exclude': 'is_4k,is_50fps'} |
| + page_set = page_sets.MediaCnsCasesPageSet |
| @classmethod |
| def Name(cls): |
| - return 'media.chromeOS.tough_video_cases' |
| + return 'media.media_cns_cases' |
| @benchmark.Disabled('android-webview') # crbug.com/419689 |