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

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

Issue 2121263002: Prepare for moving V8 compile events to disabled-by-default v8.compile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | 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.ChromeTraceCategoryFilter() 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 category_filter.AddDisabledByDefault('disabled-by-default-v8.compile')
27 options = timeline_based_measurement.Options(category_filter) 28 options = timeline_based_measurement.Options(category_filter)
28 options.SetTimelineBasedMetric('executionMetric') 29 options.SetTimelineBasedMetric('executionMetric')
29 return options 30 return options
30 31
31 32
32 @benchmark.Disabled('win') # crbug.com/416502 33 @benchmark.Disabled('win') # crbug.com/416502
33 class V8Top25(perf_benchmark.PerfBenchmark): 34 class V8Top25(perf_benchmark.PerfBenchmark):
34 """Measures V8 GC metrics on the while scrolling down the top 25 web pages. 35 """Measures V8 GC metrics on the while scrolling down the top 25 web pages.
35 36
36 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 37 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 return True 303 return True
303 # http://crbug.com/623576 304 # http://crbug.com/623576
304 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or 305 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or
305 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): 306 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'):
306 return True 307 return True
307 return False 308 return False
308 309
309 @classmethod 310 @classmethod
310 def ShouldTearDownStateAfterEachStoryRun(cls): 311 def ShouldTearDownStateAfterEachStoryRun(cls):
311 return True 312 return True
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698