tools/code_coverage/coverage.py
def _CreateCoverageProfileDataForTargets(targets, commands, jobs_count=None):
  """Builds and runs target to generate the coverage profile data.

  Args:
    targets: A list of targets to build with coverage instrumentation.
    commands: A list of commands used to run the targets.
    jobs_count: Number of jobs to run in parallel for building. If None, a
                default value is derived based on CPUs availability.

  Returns:
    A relative path to the generated profdata file.
  """
  _BuildTargets(targets, jobs_count)
  target_profdata_file_paths = _GetTargetProfDataPathsByExecutingCommands(
      targets, commands)
  coverage_profdata_file_path = (
      _CreateCoverageProfileDataFromTargetProfDataFiles(
          target_profdata_file_paths))

  for target_profdata_file_path in target_profdata_file_paths:
    os.remove(target_profdata_file_path)

  return coverage_profdata_file_path
Builds and runs target to generate the coverage profile data.

  Args:
    targets: A list of targets to build with coverage instrumentation.
    commands: A list of commands used to run the targets.
    jobs_count: Number of jobs to run in parallel for building. If None, a
                default value is derived based on CPUs availability.

  Returns:
    A relative path to the generated profdata file.
  
Builds and runs target to generate the coverage profile data.
Builds and runs target to generate the coverage profile data .
def _CreateCoverageProfileDataForTargets(targets, commands, jobs_count=None):
  _BuildTargets(targets, jobs_count)
  target_profdata_file_paths = _GetTargetProfDataPathsByExecutingCommands(
      targets, commands)
  coverage_profdata_file_path = (
      _CreateCoverageProfileDataFromTargetProfDataFiles(
          target_profdata_file_paths))
  for target_profdata_file_path in target_profdata_file_paths:
    os.remove(target_profdata_file_path)
  return coverage_profdata_file_path
def _CreateCoverageProfileDataForTargets ( targets , commands , jobs_count = None ) : _BuildTargets ( targets , jobs_count ) target_profdata_file_paths = _GetTargetProfDataPathsByExecutingCommands ( targets , commands ) coverage_profdata_file_path = ( _CreateCoverageProfileDataFromTargetProfDataFiles ( target_profdata_file_paths ) ) for target_profdata_file_path in target_profdata_file_paths : os . remove ( target_profdata_file_path ) return coverage_profdata_file_path
Builds and runs target to generate the coverage profile data.
Builds and runs target to generate the coverage profile data .
"""Builds and runs target to generate the coverage profile data.

  Args:
    targets: A list of targets to build with coverage instrumentation.
    commands: A list of commands used to run the targets.
    jobs_count: Number of jobs to run in parallel for building. If None, a
                default value is derived based on CPUs availability.

  Returns:
    A relative path to the generated profdata file.
  """
A relative path to the generated profdata file.
A relative path to the generated profdata file .
targets
A list of targets to build with coverage instrumentation.
A list of targets to build with coverage instrumentation .
commands
A list of commands used to run the targets.
A list of commands used to run the targets .
jobs_count
Number of jobs to run in parallel for building. If None, a
default value is derived based on CPUs availability.
Number of jobs to run in parallel for building . If None a default value is derived based on CPUs availability .