tools/cygprofile/orderfile_generator_backend.py
def _SaveForDebuggingWithOverwrite(self, file_name):
    """Uploads and overwrites the file in cloud storage or copies locally.

    Should be used for large binaries like lib_chrome_so.

    Args:
      file_name: (str) File to upload.
    """
    file_sha1 = _GenerateHash(file_name)
    if not self._options.buildbot:
      self._SaveFileLocally(file_name, file_sha1)
    else:
      print('Uploading file for debugging: %s, sha1sum: %s' % (file_name,
                                                               file_sha1))
      upload_location = '%s/%s' % (
          self._CLOUD_STORAGE_BUCKET_FOR_DEBUG, os.path.basename(file_name))
      self._step_recorder.RunCommand([
          'gsutil.py', 'cp', file_name, 'gs://' + upload_location])
      print('Uploaded to: https://sandbox.google.com/storage/' +
            upload_location)
Uploads and overwrites the file in cloud storage or copies locally.

    Should be used for large binaries like lib_chrome_so.

    Args:
      file_name: (str) File to upload.
    
Uploads and overwrites the file in cloud storage or copies locally.
Should be used for large binaries like lib_chrome_so.
Uploads and overwrites the file in cloud storage or copies locally . Should be used for large binaries like lib_chrome_so .
def _SaveForDebuggingWithOverwrite(self, file_name):
    file_sha1 = _GenerateHash(file_name)
    if not self._options.buildbot:
      self._SaveFileLocally(file_name, file_sha1)
    else:
      print('Uploading file for debugging: %s, sha1sum: %s' % (file_name,
                                                               file_sha1))
      upload_location = '%s/%s' % (
          self._CLOUD_STORAGE_BUCKET_FOR_DEBUG, os.path.basename(file_name))
      self._step_recorder.RunCommand([
          'gsutil.py', 'cp', file_name, 'gs://' + upload_location])
      print('Uploaded to: https://sandbox.google.com/storage/' +
            upload_location)
def _SaveForDebuggingWithOverwrite ( self , file_name ) : file_sha1 = _GenerateHash ( file_name ) if not self . _options . buildbot : self . _SaveFileLocally ( file_name , file_sha1 ) else : print ( 'Uploading file for debugging: %s, sha1sum: %s' % ( file_name , file_sha1 ) ) upload_location = '%s/%s' % ( self . _CLOUD_STORAGE_BUCKET_FOR_DEBUG , os . path . basename ( file_name ) ) self . _step_recorder . RunCommand ( [ 'gsutil.py' , 'cp' , file_name , 'gs://' + upload_location ] ) print ( 'Uploaded to: https://sandbox.google.com/storage/' + upload_location )
Uploads and overwrites the file in cloud storage or copies locally.
Uploads and overwrites the file in cloud storage or copies locally .
"""Uploads and overwrites the file in cloud storage or copies locally.

    Should be used for large binaries like lib_chrome_so.

    Args:
      file_name: (str) File to upload.
    """
self
file_name
(str) File to upload.
( str ) File to upload .