Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / tools / perf / benchmarks / thread_times.py
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
5
6 from measurements import thread_times
7
8 class ThreadTimesKeySilkCases(test.Test):
9   """Measures timeline metrics while performing smoothness action on key silk
10   cases."""
11   test = thread_times.ThreadTimes
12   page_set = 'page_sets/key_silk_cases.json'
13   options = {"report_silk_results": True}
14
15 class LegacySilkBenchmark(ThreadTimesKeySilkCases):
16   """Same as thread_times.key_silk_cases but with the old name."""
17   @classmethod
18   def GetName(cls):
19     return "silk.key_silk_cases"
20
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'}
28
29 class LegacyFastPathBenchmark(ThreadTimesFastPathMobileSites):
30   """Same as thread_times.fast_path_mobile_sites but with the old name."""
31   @classmethod
32   def GetName(cls):
33     return "fast_path.key_mobile_sites"