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.
4from telemetry import benchmark
5from telemetry.web_perf import timeline_based_measurement
6
7from benchmarks import simple_story_set
8
9class TBMSample(benchmark.Benchmark):
10
11  def CreateStorySet(self, options):
12    return simple_story_set.SimpleStorySet()
13
14  def CreateTimelineBasedMeasurementOptions(self):
15    options = timeline_based_measurement.Options()
16    options.SetTimelineBasedMetric('sample_metric.html')
17    return options
18
19  @classmethod
20  def Name(cls):
21    return 'tbm_sample.tbm_sample'
22