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

Unified Diff: tools/telemetry/telemetry/page/actions/action_runner.py

Issue 338883005: Add ForceGarbageCollection and PauseInteractive to ActionRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
Index: tools/telemetry/telemetry/page/actions/action_runner.py
diff --git a/tools/telemetry/telemetry/page/actions/action_runner.py b/tools/telemetry/telemetry/page/actions/action_runner.py
index 4933fa2a5c177c1f239fb41e2e611fe1f2cb4331..f4135f769c64f0aa5edd12e0e0567140e2da566f 100644
--- a/tools/telemetry/telemetry/page/actions/action_runner.py
+++ b/tools/telemetry/telemetry/page/actions/action_runner.py
@@ -238,6 +238,19 @@ class ActionRunner(object):
left_start_ratio=left_start_ratio, top_start_ratio=top_start_ratio,
direction=direction, distance=distance, speed=speed))
+ def ForceGarbageCollection(self):
+ """Forces JavaScript garbage collection on the page."""
+ self._tab.CollectGarbage()
+
+ def PauseInteractive(self):
+ """Pause the page execution and wait for terminal interaction.
+
+ This is typically used for debugging. You can use this to pause
+ the page execution and inspect the browser state before
+ continuing.
+ """
+ raw_input("Interacting... Press Enter to continue.")
+
class Interaction(object):
« no previous file with comments | « tools/perf/page_sets/top_desktop_sites_2012Q3.py ('k') | tools/telemetry/telemetry/page/actions/all_page_actions.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698