| Index: tools/perf/benchmarks/memory.py
|
| diff --git a/tools/perf/benchmarks/memory.py b/tools/perf/benchmarks/memory.py
|
| index 889e0542b397ed8f9d3613fddc3067eee2673544..86f883d29ce76f531891467b7aaae35776c0c554 100644
|
| --- a/tools/perf/benchmarks/memory.py
|
| +++ b/tools/perf/benchmarks/memory.py
|
| @@ -84,6 +84,45 @@ class MemoryBenchmarkTrivialSitesDesktop(_MemoryInfra):
|
| return not _IGNORED_STATS_RE.search(value.name)
|
|
|
|
|
| +@benchmark.Enabled('mac')
|
| +@benchmark.Enabled('win')
|
| +@benchmark.Owner(emails=['erikchen@chromium.org'])
|
| +class MemoryBenchmarkSitesDesktop(_MemoryInfra):
|
| + """Measure memory usage on popular sites."""
|
| + options = {'pageset_repeat': 3}
|
| +
|
| + def CreateStorySet(self, options):
|
| + return page_sets.DesktopMemoryPageSet()
|
| +
|
| + def SetExtraBrowserOptions(self, options):
|
| + super(MemoryBenchmarkSitesDesktop, self).SetExtraBrowserOptions(
|
| + options)
|
| + options.AppendExtraBrowserArgs([
|
| + '--enable-heap-profiling=native',
|
| + ])
|
| + # Disablr taking screen shot on failed pages for all perf benchmarks.
|
| + options.take_screenshot_for_failed_page = False
|
| +
|
| + @classmethod
|
| + def Name(cls):
|
| + return 'memory.desktop_sites'
|
| +
|
| + @classmethod
|
| + def ShouldTearDownStateAfterEachStoryRun(cls):
|
| + return False
|
| +
|
| + @classmethod
|
| + def ShouldTearDownStateAfterEachStorySetRun(cls):
|
| + return False
|
| +
|
| + @classmethod
|
| + def ValueCanBeAddedPredicate(cls, value, is_first_result):
|
| + # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard
|
| + # is able to cope with the data load generated by TBMv2 metrics.
|
| + return not _IGNORED_STATS_RE.search(value.name)
|
| +
|
| +
|
| +
|
| @benchmark.Enabled('android') # catapult:#3176
|
| @benchmark.Owner(emails=['perezju@chromium.org'])
|
| class MemoryBenchmarkTop10Mobile(_MemoryInfra):
|
|
|