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

Unified Diff: tools/telemetry/telemetry/core/tab.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: Use devtool's cache clearing 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/tab.py
diff --git a/tools/telemetry/telemetry/core/tab.py b/tools/telemetry/telemetry/core/tab.py
index d6184d0648b08cbf6b90201eadddbb04fc707876..b129a8371dead9f145043f919281080a15c7f38f 100644
--- a/tools/telemetry/telemetry/core/tab.py
+++ b/tools/telemetry/telemetry/core/tab.py
@@ -98,3 +98,7 @@ class Tab(web_contents.WebContents):
def CollectGarbage(self):
self._inspector_backend.CollectGarbage()
+
+ def ClearCache(self):
+ """Clears the browser's HTTP disk cache and the tab's HTTP memory cache."""
+ self._inspector_backend.ClearCache()

Powered by Google App Engine
This is Rietveld 408576698