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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/benchmarks/puf.py
diff --git a/tools/perf/benchmarks/puf.py b/tools/perf/benchmarks/puf.py
new file mode 100644
index 0000000000000000000000000000000000000000..a115ab952c906f6cf6375d64224b42edcb6348c2
--- /dev/null
+++ b/tools/perf/benchmarks/puf.py
@@ -0,0 +1,33 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from core import perf_benchmark
+from telemetry.timeline import tracing_category_filter
+from telemetry.web_perf import timeline_based_measurement
+import page_sets
+
+class _PUFBenchmark(perf_benchmark.PerfBenchmark):
+ TRACING_CATEGORIES = [
+ 'benchmark',
+ 'blink',
+ 'blink.user_timing',
+ 'disabled-by-default-blink.debug.layout',
+ 'navigation',
+ ]
+
+ def CreateTimelineBasedMeasurementOptions(self):
+ options = timeline_based_measurement.Options()
+ options.config.SetTracingCategoryFilter(
+ tracing_category_filter.TracingCategoryFilter(','.join(
+ self.TRACING_CATEGORIES)))
+ options.SetTimelineBasedMetric('PUFMetric')
+ return options
+
+
+class PUFTop10k(_PUFBenchmark):
+ page_set = page_sets.Alexa1To10000PageSet
+
+ @classmethod
+ def Name(cls):
+ return 'puf.top10k'

Powered by Google App Engine
This is Rietveld 408576698