tbm_benchmark.py 665 B

123456789101112131415161718192021
  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
  6. from benchmarks import simple_story_set
  7. class TBMSample(benchmark.Benchmark):
  8. def CreateStorySet(self, options):
  9. return simple_story_set.SimpleStorySet()
  10. def CreateTimelineBasedMeasurementOptions(self):
  11. options = timeline_based_measurement.Options()
  12. options.SetTimelineBasedMetrics(['sample_metric.html'])
  13. return options
  14. @classmethod
  15. def Name(cls):
  16. return 'tbm_sample.tbm_sample'