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

Unified Diff: tools/telemetry/telemetry/core/browser.py

Issue 16154007: [Telemetry] Add a page set option to use all cold page loads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move --cold-page-loads to page_cycler.py Created 7 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/core/browser.py
diff --git a/tools/telemetry/telemetry/core/browser.py b/tools/telemetry/telemetry/core/browser.py
index b483fbd1c5ab5563b4b46f866ccc84b2376a8bcc..44c5b706bec176b379e453b928a64e783089b073 100644
--- a/tools/telemetry/telemetry/core/browser.py
+++ b/tools/telemetry/telemetry/core/browser.py
@@ -225,6 +225,14 @@ class Browser(object):
"""Returns the result of the trace, as TraceResult object."""
return self._browser_backend.GetTraceResultAndReset()
+ def CloseConnections(self):
nduca 2013/06/06 22:49:04 i recall asking if these were supported on all bro
tonyg 2013/06/20 02:42:29 I switched this to use devtools' cache clearing me
+ """Closes all TCP sockets held open by the browser."""
+ self._browser_backend.CloseConnections()
+
+ def ClearCache(self):
+ """Clears all persistent state in the browser."""
+ self._browser_backend.ClearCache()
+
def Close(self):
"""Closes this browser."""
self._platform.SetFullPerformanceModeEnabled(False)

Powered by Google App Engine
This is Rietveld 408576698