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

Unified Diff: tools/perf/benchmarks/octane.py

Issue 450873002: [Telemetry] Fix Octane on non-rooted devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Maintain check when possible Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/octane.py
diff --git a/tools/perf/benchmarks/octane.py b/tools/perf/benchmarks/octane.py
index 16b0bf30bdb5a1c4e8db9c59cadbcf3e0d040938..eba74f1a8dcfbe2d72cfb236430deb4c075176db 100644
--- a/tools/perf/benchmarks/octane.py
+++ b/tools/perf/benchmarks/octane.py
@@ -76,7 +76,9 @@ class _OctaneMeasurement(page_measurement.PageMeasurement):
self._power_metric = power.PowerMetric(browser)
def WillNavigateToPage(self, page, tab):
- if tab.browser.memory_stats['SystemTotalPhysicalMemory'] < 1 * _GB:
+ memory_stats = tab.browser.memory_stats
+ if ('SystemTotalPhysicalMemory' in memory_stats and
+ memory_stats['SystemTotalPhysicalMemory'] < 1 * _GB):
skipBenchmarks = '"zlib"'
else:
skipBenchmarks = ''
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698