Chromium Code Reviews| Index: tools/perf/benchmarks/memory_infra.py |
| diff --git a/tools/perf/benchmarks/memory_infra.py b/tools/perf/benchmarks/memory_infra.py |
| index e7934e6f6c76dbc449b47d66ee51e22c3226541f..81f3b3f7097c905a3f69fb1570d8b9b763a18cfa 100644 |
| --- a/tools/perf/benchmarks/memory_infra.py |
| +++ b/tools/perf/benchmarks/memory_infra.py |
| @@ -40,11 +40,10 @@ class _MemoryInfra(perf_benchmark.PerfBenchmark): |
| return tbm_options |
| @classmethod |
| - def HasBenchmarkTraceRerunDebugOption(cls): |
| + def HasTraceRerunDebugOption(cls): |
|
perezju
2016/03/10 13:45:47
The bug was caused by this method having the wrong
|
| return True |
| def SetupBenchmarkDefaultTraceRerunOptions(self, tbm_options): |
| - # TODO(perezju): Call this function for TBM benchmarks: crbug.com/593678 |
| tbm_options.SetLegacyTimelineBasedMetrics(( |
| memory_timeline.MemoryTimelineMetric(), |
| )) |
| @@ -138,11 +137,14 @@ class MemoryLongRunningIdleGmailTBM(_MemoryInfra): |
| for category in v8_categories: |
| category_filter.AddIncludedCategory(category) |
| options = timeline_based_measurement.Options(category_filter) |
| - options.SetLegacyTimelineBasedMetrics([ |
| - v8_gc_latency.V8GCLatency(), |
| - memory_timeline.MemoryTimelineMetric()]) |
| return options |
| + def SetupBenchmarkDefaultTraceRerunOptions(self, tbm_options): |
| + tbm_options.SetLegacyTimelineBasedMetrics(( |
| + v8_gc_latency.V8GCLatency(), |
| + memory_timeline.MemoryTimelineMetric(), |
| + )) |
|
nednguyen
2016/03/10 16:33:32
We also need to set the categories properly, I thi
perezju
2016/03/14 11:55:03
So, you mean all of the code to set category filte
nednguyen
2016/03/14 15:10:49
Ah, I just look at the code. It looks like you don
|
| + |
| @classmethod |
| def Name(cls): |
| return 'memory.long_running_idle_gmail_tbm' |