Index: tools/perf/page_sets/blink_memory_mobile.py |
diff --git a/tools/perf/page_sets/blink_memory_mobile.py b/tools/perf/page_sets/blink_memory_mobile.py |
index cec25c8a8758892a976744b8366569273175f7ca..083bf86951c124079644c51bf67c98a0540bc234 100644 |
--- a/tools/perf/page_sets/blink_memory_mobile.py |
+++ b/tools/perf/page_sets/blink_memory_mobile.py |
@@ -24,8 +24,19 @@ class BlinkMemoryMobilePage(page_module.Page): |
def _DumpMemory(self, action_runner, phase): |
with action_runner.CreateInteraction(phase): |
+ # before |
+ action_runner.Wait(DUMP_WAIT_TIME) |
+ if not action_runner.tab.browser.DumpMemory(): |
+ logging.error('Unable to get a memory dump for %s.', self.name) |
+ # after GC |
action_runner.Wait(DUMP_WAIT_TIME) |
action_runner.ForceGarbageCollection() |
+ action_runner.Wait(DUMP_WAIT_TIME) |
+ if not action_runner.tab.browser.DumpMemory(): |
+ logging.error('Unable to get a memory dump for %s.', self.name) |
+ # after pressure notification |
+ action_runner.Wait(DUMP_WAIT_TIME) |
+# action_runner.ForceGarbageCollection() |
action_runner.SimulateMemoryPressureNotification('critical') |
action_runner.Wait(DUMP_WAIT_TIME) |
if not action_runner.tab.browser.DumpMemory(): |