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

Unified Diff: tools/perf/benchmarks/memory_infra.py

Issue 1785683002: [memory_infra] Fix trace rerun options in memory benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698