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

Unified Diff: telemetry/telemetry/page/cache_temperature.py

Issue 3016563002: Rename 'warmCache' to 'warm_cache' (Closed)
Patch Set: Created 3 years, 3 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 | telemetry/telemetry/page/cache_temperature_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/page/cache_temperature.py
diff --git a/telemetry/telemetry/page/cache_temperature.py b/telemetry/telemetry/page/cache_temperature.py
index 093a388b957e28dcddf5b11648179e8ff91f4522..749ab864149ba1460d56e85b5ea6c352d785d299 100644
--- a/telemetry/telemetry/page/cache_temperature.py
+++ b/telemetry/telemetry/page/cache_temperature.py
@@ -62,14 +62,9 @@ def EnsurePageCacheTemperature(page, browser, previous_page=None):
return
if temperature == COLD:
- if previous_page is None:
- with MarkTelemetryInternal(browser, 'ensure_diskcache'):
- tab = browser.tabs[0]
- tab.Navigate("http://does.not.exist")
nednguyen 2017/09/19 09:40:27 Wait, where is this logic not needed any more?
yukiy 2017/09/19 10:08:20 This logic ensures that browser has any tab, but b
nednguyen 2017/09/19 10:25:00 I recall it does more than that. Otherwise we woul
yukiy 2017/09/21 07:20:16 Thanks ned, as you said this logic can't be remove
- tab.WaitForDocumentReadyStateToBeComplete()
-
- any_tab = browser.tabs[0]
- any_tab.ClearCache(force=True)
+ with MarkTelemetryInternal(browser, 'clear_cache'):
+ any_tab = browser.tabs[0]
+ any_tab.ClearCache(force=True)
elif temperature == WARM:
if (previous_page is not None and
previous_page.url == page.url and
@@ -86,7 +81,7 @@ def EnsurePageCacheTemperature(page, browser, previous_page=None):
tab.WaitForDocumentReadyStateToBeComplete()
return
- with MarkTelemetryInternal(browser, 'warmCache'):
+ with MarkTelemetryInternal(browser, 'warm_cache'):
tab = browser.tabs[0]
tab.Navigate(page.url)
py_utils.WaitFor(tab.HasReachedQuiescence, 60)
« no previous file with comments | « no previous file | telemetry/telemetry/page/cache_temperature_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698