tools/perf/core/services/isolate_service.py
def RetrieveCompressed(digest):
  """Retrieve the compressed content stored at some isolate digest.

  Responses are cached locally to speed up retrieving content multiple times
  for the same digest.
  """
  cache_file = os.path.join(CACHE_DIR, digest)
  if os.path.exists(cache_file):
    with open(cache_file, 'rb') as f:
      return f.read()
  else:
    if not os.path.isdir(CACHE_DIR):
      os.makedirs(CACHE_DIR)
    content = _RetrieveCompressed(digest)
    with open(cache_file, 'wb') as f:
      f.write(content)
    return content
Retrieve the compressed content stored at some isolate digest.

  Responses are cached locally to speed up retrieving content multiple times
  for the same digest.
  
Retrieve the compressed content stored at some isolate digest.
Responses are cached locally to speed up retrieving content multiple times
for the same digest.
Retrieve the compressed content stored at some isolate digest . Responses are cached locally to speed up retrieving content multiple times for the same digest .
def RetrieveCompressed(digest):
  cache_file = os.path.join(CACHE_DIR, digest)
  if os.path.exists(cache_file):
    with open(cache_file, 'rb') as f:
      return f.read()
  else:
    if not os.path.isdir(CACHE_DIR):
      os.makedirs(CACHE_DIR)
    content = _RetrieveCompressed(digest)
    with open(cache_file, 'wb') as f:
      f.write(content)
    return content
def RetrieveCompressed ( digest ) : cache_file = os . path . join ( CACHE_DIR , digest ) if os . path . exists ( cache_file ) : with open ( cache_file , 'rb' ) as f : return f . read ( ) else : if not os . path . isdir ( CACHE_DIR ) : os . makedirs ( CACHE_DIR ) content = _RetrieveCompressed ( digest ) with open ( cache_file , 'wb' ) as f : f . write ( content ) return content
Retrieve the compressed content stored at some isolate digest.
Retrieve the compressed content stored at some isolate digest .
"""Retrieve the compressed content stored at some isolate digest.

  Responses are cached locally to speed up retrieving content multiple times
  for the same digest.
  """
digest