1 # Copyright 2016 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 benchmark
5 from telemetry
.web_perf
import timeline_based_measurement
7 from benchmarks
import simple_story_set
9 class TBMSample(benchmark
.Benchmark
):
11 def CreateStorySet(self
, options
):
12 return simple_story_set
.SimpleStorySet()
14 def CreateTimelineBasedMeasurementOptions(self
):
15 options
= timeline_based_measurement
.Options()
16 options
.SetTimelineBasedMetrics(['sample_metric.html'])
21 return 'tbm_sample.tbm_sample'