Commit 2093921c authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

[tools/perf] Enable the metric reported by page

This enables the reportedByPageMetric for system health and v8 browsing
benchmarks.

Bug: 1007178
Change-Id: I1ba85f6984c7a3db257595c369d13759d3180f42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1831808Reviewed-by: default avatarJuan Antonio Navarro Pérez <perezju@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703274}
parent 5b3b4152
......@@ -31,6 +31,8 @@ class _CommonSystemHealthBenchmark(perf_benchmark.PerfBenchmark):
cat_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter(
filter_string='rail,toplevel')
cat_filter.AddIncludedCategory('accessibility')
# Needed for the metric reported by page.
cat_filter.AddIncludedCategory('blink.user_timing')
# Needed for the console error metric.
cat_filter.AddIncludedCategory('v8.console')
......@@ -42,6 +44,7 @@ class _CommonSystemHealthBenchmark(perf_benchmark.PerfBenchmark):
'consoleErrorMetric',
'cpuTimeMetric',
'limitedCpuTimeMetric',
'reportedByPageMetric',
'tracingMetric'
])
loading_metrics_category.AugmentOptionsForLoadingMetrics(options)
......
......@@ -24,7 +24,10 @@ def AugmentOptionsForV8BrowsingMetrics(options, enable_runtime_call_stats=True):
'webkit.console',
# Blink categories.
'blink_gc',
# Needed for the metric reported by page.
'blink.user_timing'
]
options.ExtendTraceCategoryFilter(categories)
if enable_runtime_call_stats:
options.AddTraceCategoryFilter('disabled-by-default-v8.runtime_stats')
......@@ -43,6 +46,7 @@ def AugmentOptionsForV8BrowsingMetrics(options, enable_runtime_call_stats=True):
'expectedQueueingTimeMetric',
'gcMetric',
'memoryMetric',
'reportedByPageMetric',
]
options.ExtendTimelineBasedMetric(metrics)
if enable_runtime_call_stats:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment