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

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

Issue 2108593003: CL for perf tryjob on android (WITH logging) (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 | tools/perf/benchmarks/system_health.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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 re 5 import re
6 6
7 from core import perf_benchmark 7 from core import perf_benchmark
8 8
9 from telemetry import benchmark 9 from telemetry import benchmark
10 from telemetry.timeline import tracing_category_filter 10 from telemetry.timeline import tracing_category_filter
(...skipping 13 matching lines...) Expand all
24 """Base class for new-generation memory benchmarks based on memory-infra. 24 """Base class for new-generation memory benchmarks based on memory-infra.
25 25
26 This benchmark records data using memory-infra (https://goo.gl/8tGc6O), which 26 This benchmark records data using memory-infra (https://goo.gl/8tGc6O), which
27 is part of chrome tracing, and extracts it using timeline-based measurements. 27 is part of chrome tracing, and extracts it using timeline-based measurements.
28 """ 28 """
29 29
30 # Subclasses can override this to use TBMv2 instead of TBMv1. 30 # Subclasses can override this to use TBMv2 instead of TBMv1.
31 TBM_VERSION = 1 31 TBM_VERSION = 1
32 32
33 def SetExtraBrowserOptions(self, options): 33 def SetExtraBrowserOptions(self, options):
34 options.logging_verbosity = options.NON_VERBOSE_LOGGING
34 options.AppendExtraBrowserArgs([ 35 options.AppendExtraBrowserArgs([
35 # TODO(perezju): Temporary workaround to disable periodic memory dumps. 36 # TODO(perezju): Temporary workaround to disable periodic memory dumps.
36 # See: http://crbug.com/513692 37 # See: http://crbug.com/513692
37 '--enable-memory-benchmarking', 38 '--enable-memory-benchmarking',
38 ]) 39 ])
39 40
40 def CreateTimelineBasedMeasurementOptions(self): 41 def CreateTimelineBasedMeasurementOptions(self):
41 # Enable only memory-infra, to get memory dumps, and blink.console, to get 42 # Enable only memory-infra, to get memory dumps, and blink.console, to get
42 # the timeline markers used for mapping threads to tabs. 43 # the timeline markers used for mapping threads to tabs.
43 trace_memory = tracing_category_filter.TracingCategoryFilter( 44 trace_memory = tracing_category_filter.TracingCategoryFilter(
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 of long running idle Gmail page """ 247 of long running idle Gmail page """
247 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet 248 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet
248 249
249 @classmethod 250 @classmethod
250 def Name(cls): 251 def Name(cls):
251 return 'memory.long_running_idle_gmail_background_tbmv2' 252 return 'memory.long_running_idle_gmail_background_tbmv2'
252 253
253 @classmethod 254 @classmethod
254 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 255 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530
255 return cls.IsSvelte(possible_browser) 256 return cls.IsSvelte(possible_browser)
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/system_health.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698