blob: ba206b0141ced74f596406b8e4ea712cd81bafd5 [file] [log] [blame]
# Copyright 2018 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 benchmarks import v8_browsing
from contrib.cluster_telemetry import loading_base_ct
from telemetry.web_perf import timeline_based_measurement
# pylint: disable=protected-access
class V8LoadingClusterTelemetry(loading_base_ct._LoadingBaseClusterTelemetry):
@classmethod
def Name(cls):
return 'v8.loading.cluster_telemetry'
@classmethod
def ShouldAddValue(cls, name, from_first_story_run):
del from_first_story_run # unused
return v8_browsing.V8BrowsingShouldAddValue(name)
def CreateCoreTimelineBasedMeasurementOptions(self):
options = timeline_based_measurement.Options()
v8_browsing.AugmentOptionsForV8BrowsingMetrics(options,
enable_runtime_call_stats=False)
return options