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

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

Issue 2306073002: Revert of Add some more categories for V8.TodoMVC to see what keeps us non-idle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 | tools/perf/page_sets/todomvc.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.ChromeTraceCategoryFilter() 24 category_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter()
25 category_filter.AddIncludedCategory('v8') 25 category_filter.AddIncludedCategory('v8')
26 category_filter.AddIncludedCategory('blink')
27 category_filter.AddIncludedCategory('blink.console') 26 category_filter.AddIncludedCategory('blink.console')
28 category_filter.AddDisabledByDefault('disabled-by-default-v8.compile') 27 category_filter.AddDisabledByDefault('disabled-by-default-v8.compile')
29 options = timeline_based_measurement.Options(category_filter) 28 options = timeline_based_measurement.Options(category_filter)
30 options.SetTimelineBasedMetrics(['executionMetric']) 29 options.SetTimelineBasedMetrics(['executionMetric'])
31 return options 30 return options
32 31
33 32
34 @benchmark.Disabled('win') # crbug.com/416502 33 @benchmark.Disabled('win') # crbug.com/416502
35 class V8Top25(perf_benchmark.PerfBenchmark): 34 class V8Top25(perf_benchmark.PerfBenchmark):
36 """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.
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 return True 313 return True
315 # http://crbug.com/623576 314 # http://crbug.com/623576
316 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or 315 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or
317 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): 316 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'):
318 return True 317 return True
319 return False 318 return False
320 319
321 @classmethod 320 @classmethod
322 def ShouldTearDownStateAfterEachStoryRun(cls): 321 def ShouldTearDownStateAfterEachStoryRun(cls):
323 return True 322 return True
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/todomvc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698