tools/perf/core/services/isolate_service.py
def _RetrieveCompressed(digest):
  """Retrieve the compressed content stored at some isolate digest."""
  data = Request(
      '/retrieve', method='POST', content_type='json',
      data={'namespace': {'namespace': 'default-gzip'}, 'digest': digest})

  if 'url' in data:
    return request.Request(data['url'])
  if 'content' in data:
    return base64.b64decode(data['content'])
  else:
    raise NotImplementedError(
        'Isolate %s in unknown format %s' % (digest, json.dumps(data)))
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 .
def _RetrieveCompressed(digest):
  data = Request(
      '/retrieve', method='POST', content_type='json',
      data={'namespace': {'namespace': 'default-gzip'}, 'digest': digest})
  if 'url' in data:
    return request.Request(data['url'])
  if 'content' in data:
    return base64.b64decode(data['content'])
  else:
    raise NotImplementedError(
        'Isolate %s in unknown format %s' % (digest, json.dumps(data)))
def _RetrieveCompressed ( digest ) : data = Request ( '/retrieve' , method = 'POST' , content_type = 'json' , data = { 'namespace' : { 'namespace' : 'default-gzip' } , 'digest' : digest } ) if 'url' in data : return request . Request ( data [ 'url' ] ) if 'content' in data : return base64 . b64decode ( data [ 'content' ] ) else : raise NotImplementedError ( 'Isolate %s in unknown format %s' % ( digest , json . dumps ( data ) ) )
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."""
digest