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

Unified Diff: devil/devil/devil_env.py

Issue 2438753002: [devil] Add a prefetch interface to devil_env. (Closed)
Patch Set: aiolos comment Created 4 years, 2 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/internal/util/binary_manager.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/devil_env.py
diff --git a/devil/devil/devil_env.py b/devil/devil/devil_env.py
index f62dfa46dec0814ab88e05965f3f57c2ef0d611a..aa4fe1ee6dbba9c229545474d81228a8e6ea0d20 100644
--- a/devil/devil/devil_env.py
+++ b/devil/devil/devil_env.py
@@ -179,9 +179,13 @@ class _Environment(object):
self.Initialize()
return self._dm.LocalPath(dependency, GetPlatform(arch, device))
+ def PrefetchPaths(self, dependencies=None, arch=None, device=None):
+ return self._dm.PrefetchPaths(
+ GetPlatform(arch, device), dependencies=dependencies)
+
def GetPlatform(arch=None, device=None):
- if device:
+ if arch or device:
return 'android_%s' % (arch or device.product_cpu_abi)
return '%s_%s' % (sys.platform, platform.machine())
« no previous file with comments | « no previous file | telemetry/telemetry/internal/util/binary_manager.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698