tools/code_coverage/coverage.py
def _CreateCoverageProfileDataFromTargetProfDataFiles(profdata_file_paths):
  """Returns a relative path to coverage profdata file by merging target
  profdata files.

  Args:
    profdata_file_paths: A list of relative paths to the profdata data files
                         that are to be merged.

  Returns:
    A relative path to the merged coverage profdata file.

  Raises:
    CalledProcessError: An error occurred merging profdata files.
  """
  logging.info('Creating the coverage profile data file.')
  logging.debug('Merging target profraw files to create target profdata file.')
  profdata_file_path = _GetProfdataFilePath()
  try:
    subprocess_cmd = [
        LLVM_PROFDATA_PATH, 'merge', '-o', profdata_file_path, '-sparse=true'
    ]
    subprocess_cmd.extend(profdata_file_paths)

    output = subprocess.check_output(subprocess_cmd)
    logging.debug('Merge output: %s', output)
  except subprocess.CalledProcessError as error:
    logging.error(
        'Failed to merge target profdata files to create coverage profdata. %s',
        FILE_BUG_MESSAGE)
    raise error

  logging.debug('Finished merging target profdata files.')
  logging.info('Code coverage profile data is created as: "%s".',
               profdata_file_path)
  return profdata_file_path
Returns a relative path to coverage profdata file by merging target
  profdata files.

  Args:
    profdata_file_paths: A list of relative paths to the profdata data files
                         that are to be merged.

  Returns:
    A relative path to the merged coverage profdata file.

  Raises:
    CalledProcessError: An error occurred merging profdata files.
  
Returns a relative path to coverage profdata file by merging target
profdata files.
Returns a relative path to coverage profdata file by merging target profdata files .
def _CreateCoverageProfileDataFromTargetProfDataFiles(profdata_file_paths):
  logging.info('Creating the coverage profile data file.')
  logging.debug('Merging target profraw files to create target profdata file.')
  profdata_file_path = _GetProfdataFilePath()
  try:
    subprocess_cmd = [
        LLVM_PROFDATA_PATH, 'merge', '-o', profdata_file_path, '-sparse=true'
    ]
    subprocess_cmd.extend(profdata_file_paths)
    output = subprocess.check_output(subprocess_cmd)
    logging.debug('Merge output: %s', output)
  except subprocess.CalledProcessError as error:
    logging.error(
        'Failed to merge target profdata files to create coverage profdata. %s',
        FILE_BUG_MESSAGE)
    raise error
  logging.debug('Finished merging target profdata files.')
  logging.info('Code coverage profile data is created as: "%s".',
               profdata_file_path)
  return profdata_file_path
def _CreateCoverageProfileDataFromTargetProfDataFiles ( profdata_file_paths ) : logging . info ( 'Creating the coverage profile data file.' ) logging . debug ( 'Merging target profraw files to create target profdata file.' ) profdata_file_path = _GetProfdataFilePath ( ) try : subprocess_cmd = [ LLVM_PROFDATA_PATH , 'merge' , '-o' , profdata_file_path , '-sparse=true' ] subprocess_cmd . extend ( profdata_file_paths ) output = subprocess . check_output ( subprocess_cmd ) logging . debug ( 'Merge output: %s' , output ) except subprocess . CalledProcessError as error : logging . error ( 'Failed to merge target profdata files to create coverage profdata. %s' , FILE_BUG_MESSAGE ) raise error logging . debug ( 'Finished merging target profdata files.' ) logging . info ( 'Code coverage profile data is created as: "%s".' , profdata_file_path ) return profdata_file_path
Returns a relative path to coverage profdata file by merging target
profdata files.
Returns a relative path to coverage profdata file by merging target profdata files .
"""Returns a relative path to coverage profdata file by merging target
  profdata files.

  Args:
    profdata_file_paths: A list of relative paths to the profdata data files
                         that are to be merged.

  Returns:
    A relative path to the merged coverage profdata file.

  Raises:
    CalledProcessError: An error occurred merging profdata files.
  """
A relative path to the merged coverage profdata file.
A relative path to the merged coverage profdata file .
An error occurred merging profdata files.
An error occurred merging profdata files .
CalledProcessError
profdata_file_paths
A list of relative paths to the profdata data files
that are to be merged.
A list of relative paths to the profdata data files that are to be merged .