Commit 44a8aa23 authored by Sadrul Habib Chowdhury's avatar Sadrul Habib Chowdhury Committed by Commit Bot

Add support for smoothness in cluster telemetry.

Bug: 778749
Change-Id: I34f85b22f6b292c05820cf010471d8fb9f861e3b
Reviewed-on: https://chromium-review.googlesource.com/789412Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Reviewed-by: default avatarRavi Mistry <rmistry@chromium.org>
Reviewed-by: default avatarVictor Miura <vmiura@chromium.org>
Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
Cr-Commit-Position: refs/heads/master@{#520831}
parent 402da913
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from contrib.cluster_telemetry import ct_benchmarks_util
from contrib.cluster_telemetry import page_set
from core import perf_benchmark
from measurements import smoothness
def ScrollToEndOfPage(action_runner):
action_runner.Wait(1)
with action_runner.CreateGestureInteraction('ScrollAction'):
action_runner.ScrollPage()
class SmoothnessCT(perf_benchmark.PerfBenchmark):
"""Measures smoothness performance for Cluster Telemetry."""
test = smoothness.Smoothness
@classmethod
def Name(cls):
return 'smoothness_ct'
@classmethod
def AddBenchmarkCommandLineArgs(cls, parser):
ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
@classmethod
def ProcessCommandLineArgs(cls, parser, args):
ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
def CreateStorySet(self, options):
return page_set.CTPageSet(
options.urls_list, options.user_agent, options.archive_data_file,
run_page_interaction_callback=ScrollToEndOfPage)
......@@ -21,6 +21,7 @@ def GetAllStorySets():
benchmarks_to_skip = [
'skpicture_printer_ct',
'screenshot_ct',
'smoothness_ct',
'repaint_ct',
'rasterize_and_record_micro_ct',
'multipage_skpicture_printer_ct',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment