| Index: tools/perf/benchmarks/memory_infra.py
|
| diff --git a/tools/perf/benchmarks/memory_infra.py b/tools/perf/benchmarks/memory_infra.py
|
| index 1ac4e7d78ce1b4f26b7ff309bfa4fc5158a2179c..be967921132edc09eb285ada0425713d2eabb829 100644
|
| --- a/tools/perf/benchmarks/memory_infra.py
|
| +++ b/tools/perf/benchmarks/memory_infra.py
|
| @@ -33,7 +33,7 @@ class _MemoryInfra(perf_benchmark.PerfBenchmark):
|
| options.AppendExtraBrowserArgs([
|
| # TODO(perezju): Temporary workaround to disable periodic memory dumps.
|
| # See: http://crbug.com/513692
|
| - '--enable-memory-benchmarking',
|
| + '--no-sandbox',
|
| ])
|
|
|
| def CreateTimelineBasedMeasurementOptions(self):
|
| @@ -207,3 +207,30 @@ class MemoryLongRunningIdleGmailBackground(_MemoryV8Benchmark):
|
| @classmethod
|
| def ShouldDisable(cls, possible_browser): # http://crbug.com/616530
|
| return cls.IsSvelte(possible_browser)
|
| +
|
| +
|
| +@benchmark.Enabled('android')
|
| +class RendererMemoryTest(_MemoryInfra):
|
| + """Timeline based benchmark for measuring memory consumption on mobile
|
| + sites on which blink's memory consumption is relatively high."""
|
| +
|
| + _RE_RENDERER_VALUES = re.compile('memory_.+_renderer')
|
| +
|
| + page_set = page_sets.TestPageSet
|
| +
|
| + def SetExtraBrowserOptions(self, options):
|
| + super(RendererMemoryTest, self).SetExtraBrowserOptions(
|
| + options)
|
| + options.AppendExtraBrowserArgs([
|
| + # Ignore certs errors because record_wpr cannot handle certs correctly
|
| + # in some cases (e.g. WordPress).
|
| + '--ignore-certificate-errors',
|
| + ])
|
| +
|
| + @classmethod
|
| + def Name(cls):
|
| + return 'memory.test'
|
| +
|
| + @classmethod
|
| + def ValueCanBeAddedPredicate(cls, value, is_first_result):
|
| + return bool(cls._RE_RENDERER_VALUES.match(value.name))
|
|
|