tools/code_coverage/coverage.py
def _BuildTargets(targets, jobs_count):
  """Builds target with Clang coverage instrumentation.

  This function requires current working directory to be the root of checkout.

  Args:
    targets: A list of targets to build with coverage instrumentation.
    jobs_count: Number of jobs to run in parallel for compilation. If None, a
                default value is derived based on CPUs availability.
  """
  logging.info('Building %s.', str(targets))
  autoninja = 'autoninja'
  if coverage_utils.GetHostPlatform() == 'win':
    autoninja += '.bat'

  subprocess_cmd = [autoninja, '-C', BUILD_DIR]
  if jobs_count is not None:
    subprocess_cmd.append('-j' + str(jobs_count))

  subprocess_cmd.extend(targets)
  subprocess.check_call(subprocess_cmd)
  logging.debug('Finished building %s.', str(targets))
Builds target with Clang coverage instrumentation.

  This function requires current working directory to be the root of checkout.

  Args:
    targets: A list of targets to build with coverage instrumentation.
    jobs_count: Number of jobs to run in parallel for compilation. If None, a
                default value is derived based on CPUs availability.
  
Builds target with Clang coverage instrumentation.
This function requires current working directory to be the root of checkout.
Builds target with Clang coverage instrumentation . This function requires current working directory to be the root of checkout .
def _BuildTargets(targets, jobs_count):
  logging.info('Building %s.', str(targets))
  autoninja = 'autoninja'
  if coverage_utils.GetHostPlatform() == 'win':
    autoninja += '.bat'
  subprocess_cmd = [autoninja, '-C', BUILD_DIR]
  if jobs_count is not None:
    subprocess_cmd.append('-j' + str(jobs_count))
  subprocess_cmd.extend(targets)
  subprocess.check_call(subprocess_cmd)
  logging.debug('Finished building %s.', str(targets))
def _BuildTargets ( targets , jobs_count ) : logging . info ( 'Building %s.' , str ( targets ) ) autoninja = 'autoninja' if coverage_utils . GetHostPlatform ( ) == 'win' : autoninja += '.bat' subprocess_cmd = [ autoninja , '-C' , BUILD_DIR ] if jobs_count is not None : subprocess_cmd . append ( '-j' + str ( jobs_count ) ) subprocess_cmd . extend ( targets ) subprocess . check_call ( subprocess_cmd ) logging . debug ( 'Finished building %s.' , str ( targets ) )
Builds target with Clang coverage instrumentation.
Builds target with Clang coverage instrumentation .
"""Builds target with Clang coverage instrumentation.

  This function requires current working directory to be the root of checkout.

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