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

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

Issue 1864403003: Trace LayoutObject src attributes and parent frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
OLDNEW
(Empty)
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
5 from core import perf_benchmark
6 from telemetry.timeline import tracing_category_filter
7 from telemetry.web_perf import timeline_based_measurement
8 import page_sets
9
10 class _PUFBenchmark(perf_benchmark.PerfBenchmark):
11 TRACING_CATEGORIES = [
12 'benchmark',
13 'blink',
14 'blink.user_timing',
15 'disabled-by-default-blink.debug.layout',
16 'navigation',
17 ]
18
19 def CreateTimelineBasedMeasurementOptions(self):
20 options = timeline_based_measurement.Options()
21 options.config.SetTracingCategoryFilter(
22 tracing_category_filter.TracingCategoryFilter(','.join(
23 self.TRACING_CATEGORIES)))
24 options.SetTimelineBasedMetric('PUFMetric')
25 return options
26
27
28 class PUFTop10k(_PUFBenchmark):
29 page_set = page_sets.Alexa1To10000PageSet
30
31 @classmethod
32 def Name(cls):
33 return 'puf.top10k'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698