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

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

Issue 898673005: [telemetry] Add a V8GCTimes measurement and benchmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 4
5 import page_sets 5 import page_sets
6 from telemetry.web_perf import timeline_based_measurement 6 from measurements import v8_gc_times
7 from telemetry import benchmark 7 from telemetry import benchmark
8 8
9 9
10 @benchmark.Disabled('win') # crbug.com/416502 10 @benchmark.Disabled('win') # crbug.com/416502
11 class V8GarbageCollectionCases(benchmark.Benchmark): 11 class V8GarbageCollectionCases(benchmark.Benchmark):
12 """Measure V8 metrics on the garbage collection cases.""" 12 """Measure V8 GC metrics on the garbage collection cases."""
13 def CreateTimelineBasedMeasurementOptions(self): 13 test = v8_gc_times.V8GCTimes
14 # TODO(ernstm): Remove v8-overhead when benchmark relevant v8 events become 14 page_set = page_sets.GarbageCollectionCasesPageSet
15 # available in the 'benchmark' category.
16 return timeline_based_measurement.Options(overhead_level='v8-overhead')
17 15
18 @classmethod 16 @classmethod
19 def Name(cls): 17 def Name(cls):
20 return 'v8.garbage_collection_cases' 18 return 'v8.garbage_collection_cases'
21 19
22 page_set = page_sets.GarbageCollectionCasesPageSet 20 @benchmark.Disabled('win') # crbug.com/416502
21 class V8Top25(benchmark.Benchmark):
22 """Measures V8 GC metrics on the while scrolling down the top 25 web pages.
23
24 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
25 test = v8_gc_times.V8GCTimes
26 page_set = page_sets.Top25SmoothPageSet
27
28 @classmethod
29 def Name(cls):
30 return 'v8.top_25_smooth'
31
32 @benchmark.Enabled('android')
33 class V8KeyMobileSites(benchmark.Benchmark):
34 """Measures V8 GC metrics on the while scrolling down key mobile sites.
35
36 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
37 test = v8_gc_times.V8GCTimes
38 page_set = page_sets.KeyMobileSitesSmoothPageSet
39
40 @classmethod
41 def Name(cls):
42 return 'v8.key_mobile_sites_smooth'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/measurements/v8_gc_times.py » ('j') | tools/perf/measurements/v8_gc_times.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698