1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 from telemetry import test
6 from measurements import thread_times
8 class ThreadTimesKeySilkCases(test.Test):
9 """Measures timeline metrics while performing smoothness action on key silk
11 test = thread_times.ThreadTimes
12 page_set = 'page_sets/key_silk_cases.json'
13 options = {"report_silk_results": True}
15 class LegacySilkBenchmark(ThreadTimesKeySilkCases):
16 """Same as thread_times.key_silk_cases but with the old name."""
19 return "silk.key_silk_cases"
21 class ThreadTimesFastPathMobileSites(test.Test):
22 """Measures timeline metrics while performing smoothness action on
23 key mobile sites labeled with fast-path tag.
24 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
25 test = thread_times.ThreadTimes
26 page_set = 'page_sets/key_mobile_sites.json'
27 options = {'page_label_filter' : 'fastpath'}
29 class LegacyFastPathBenchmark(ThreadTimesFastPathMobileSites):
30 """Same as thread_times.fast_path_mobile_sites but with the old name."""
33 return "fast_path.key_mobile_sites"