Update sdk/platform-tools to version 26.0.0.
[android_tools.git] / sdk / platform-tools / systrace / catapult / telemetry / examples / benchmarks / tbm_benchmark.py
blobf7d1845daa8f06330e8294283e8f1d49d03b62ce
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'])
17 return options
19 @classmethod
20 def Name(cls):
21 return 'tbm_sample.tbm_sample'