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

Side by Side Diff: tools/perf/benchmarks/v8.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/text_selection.py ('k') | tools/perf/measurements/thread_times.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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import os 4 import os
5 import re 5 import re
6 6
7 from core import path_util 7 from core import path_util
8 from core import perf_benchmark 8 from core import perf_benchmark
9 from page_sets import google_pages 9 from page_sets import google_pages
10 10
11 from benchmarks import v8_helper 11 from benchmarks import v8_helper
12 12
13 from measurements import v8_detached_context_age_in_gc 13 from measurements import v8_detached_context_age_in_gc
14 from measurements import v8_gc_times 14 from measurements import v8_gc_times
15 import page_sets 15 import page_sets
16 from telemetry import benchmark 16 from telemetry import benchmark
17 from telemetry import story 17 from telemetry import story
18 from telemetry.timeline import chrome_trace_config 18 from telemetry.timeline import chrome_trace_config
19 from telemetry.timeline import chrome_trace_category_filter 19 from telemetry.timeline import chrome_trace_category_filter
20 from telemetry.web_perf import timeline_based_measurement 20 from telemetry.web_perf import timeline_based_measurement
21 21
22 22
23 def CreateV8TimelineBasedMeasurementOptions(): 23 def CreateV8TimelineBasedMeasurementOptions():
24 category_filter = chrome_trace_category_filter.CreateMinimalOverheadFilter() 24 category_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter()
25 category_filter.AddIncludedCategory('v8') 25 category_filter.AddIncludedCategory('v8')
26 category_filter.AddIncludedCategory('blink.console') 26 category_filter.AddIncludedCategory('blink.console')
27 options = timeline_based_measurement.Options(category_filter) 27 options = timeline_based_measurement.Options(category_filter)
28 options.SetTimelineBasedMetric('executionMetric') 28 options.SetTimelineBasedMetric('executionMetric')
29 return options 29 return options
30 30
31 31
32 @benchmark.Disabled('win') # crbug.com/416502 32 @benchmark.Disabled('win') # crbug.com/416502
33 class V8Top25(perf_benchmark.PerfBenchmark): 33 class V8Top25(perf_benchmark.PerfBenchmark):
34 """Measures V8 GC metrics on the while scrolling down the top 25 web pages. 34 """Measures V8 GC metrics on the while scrolling down the top 25 web pages.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 return True 302 return True
303 # http://crbug.com/623576 303 # http://crbug.com/623576
304 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or 304 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or
305 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): 305 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'):
306 return True 306 return True
307 return False 307 return False
308 308
309 @classmethod 309 @classmethod
310 def ShouldTearDownStateAfterEachStoryRun(cls): 310 def ShouldTearDownStateAfterEachStoryRun(cls):
311 return True 311 return True
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/text_selection.py ('k') | tools/perf/measurements/thread_times.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698