Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: tools/perf/benchmarks/jitter.py

Issue 2110273002: Use correct overhead level for benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blob_storage Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/benchmarks/indexeddb_perf.py ('k') | tools/perf/benchmarks/text_selection.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from telemetry.timeline import chrome_trace_category_filter 7 from telemetry.timeline import chrome_trace_category_filter
8 from telemetry.web_perf import timeline_based_measurement 8 from telemetry.web_perf import timeline_based_measurement
9 from telemetry.web_perf.metrics import jitter_timeline 9 from telemetry.web_perf.metrics import jitter_timeline
10 10
11 import page_sets 11 import page_sets
12 12
13 13
14 JITTER_CATEGORY = 'cdp.perf' 14 JITTER_CATEGORY = 'cdp.perf'
15 TIMELINE_REQUIRED_CATEGORY = 'blink.console' 15 TIMELINE_REQUIRED_CATEGORY = 'blink.console'
16 16
17 17
18 class Jitter(perf_benchmark.PerfBenchmark): 18 class Jitter(perf_benchmark.PerfBenchmark):
19 """Timeline based measurement benchmark for jitter.""" 19 """Timeline based measurement benchmark for jitter."""
20 20
21 page_set = page_sets.JitterPageSet 21 page_set = page_sets.JitterPageSet
22 22
23 def CreateTimelineBasedMeasurementOptions(self): 23 def CreateTimelineBasedMeasurementOptions(self):
24 cat_filter = chrome_trace_category_filter.CreateMinimalOverheadFilter() 24 cat_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter()
25 cat_filter.AddIncludedCategory(JITTER_CATEGORY) 25 cat_filter.AddIncludedCategory(JITTER_CATEGORY)
26 cat_filter.AddIncludedCategory(TIMELINE_REQUIRED_CATEGORY) 26 cat_filter.AddIncludedCategory(TIMELINE_REQUIRED_CATEGORY)
27 options = timeline_based_measurement.Options( 27 options = timeline_based_measurement.Options(
28 overhead_level=cat_filter) 28 overhead_level=cat_filter)
29 options.SetLegacyTimelineBasedMetrics( 29 options.SetLegacyTimelineBasedMetrics(
30 [jitter_timeline.JitterTimelineMetric()]) 30 [jitter_timeline.JitterTimelineMetric()])
31 return options 31 return options
32 32
33 @classmethod 33 @classmethod
34 def Name(cls): 34 def Name(cls):
35 return 'jitter' 35 return 'jitter'
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/indexeddb_perf.py ('k') | tools/perf/benchmarks/text_selection.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698