tools/cygprofile/profile_android_startup.py
def CollectSystemHealthProfile(self, apk):
    """Run the orderfile system health benchmarks and collect log files.

    Args:
      apk: The location of the chrome apk file to profile.

    Returns:
      A list of cygprofile data files.

    Raises:
      NoProfileDataError: No data was found on the device.
    """
    if self._pregenerated_profiles:
      logging.info('Using pregenerated profiles instead of running '
                   'system health profile')
      logging.info('Profile files: %s', '\n'.join(self._pregenerated_profiles))
      return self._pregenerated_profiles
    logging.info('Running system health profile')
    profile_benchmark = 'orderfile_generation.training'
    if self._debug:
      logging.info('Using reduced debugging profile')
      profile_benchmark = 'orderfile_generation.debugging'
    self._SetUpDeviceFolders()
    self._RunCommand(['tools/perf/run_benchmark',
                      '--device={}'.format(self._device.serial),
                      '--browser=exact',
                      '--browser-executable={}'.format(apk),
                      profile_benchmark])
    data = self._PullProfileData()
    self._DeleteDeviceData()
    return data
Run the orderfile system health benchmarks and collect log files.

    Args:
      apk: The location of the chrome apk file to profile.

    Returns:
      A list of cygprofile data files.

    Raises:
      NoProfileDataError: No data was found on the device.
    
Run the orderfile system health benchmarks and collect log files.
Run the orderfile system health benchmarks and collect log files .
def CollectSystemHealthProfile(self, apk):
    if self._pregenerated_profiles:
      logging.info('Using pregenerated profiles instead of running '
                   'system health profile')
      logging.info('Profile files: %s', '\n'.join(self._pregenerated_profiles))
      return self._pregenerated_profiles
    logging.info('Running system health profile')
    profile_benchmark = 'orderfile_generation.training'
    if self._debug:
      logging.info('Using reduced debugging profile')
      profile_benchmark = 'orderfile_generation.debugging'
    self._SetUpDeviceFolders()
    self._RunCommand(['tools/perf/run_benchmark',
                      '--device={}'.format(self._device.serial),
                      '--browser=exact',
                      '--browser-executable={}'.format(apk),
                      profile_benchmark])
    data = self._PullProfileData()
    self._DeleteDeviceData()
    return data
def CollectSystemHealthProfile ( self , apk ) : if self . _pregenerated_profiles : logging . info ( 'Using pregenerated profiles instead of running ' 'system health profile' ) logging . info ( 'Profile files: %s' , '\n' . join ( self . _pregenerated_profiles ) ) return self . _pregenerated_profiles logging . info ( 'Running system health profile' ) profile_benchmark = 'orderfile_generation.training' if self . _debug : logging . info ( 'Using reduced debugging profile' ) profile_benchmark = 'orderfile_generation.debugging' self . _SetUpDeviceFolders ( ) self . _RunCommand ( [ 'tools/perf/run_benchmark' , '--device={}' . format ( self . _device . serial ) , '--browser=exact' , '--browser-executable={}' . format ( apk ) , profile_benchmark ] ) data = self . _PullProfileData ( ) self . _DeleteDeviceData ( ) return data
Run the orderfile system health benchmarks and collect log files.
Run the orderfile system health benchmarks and collect log files .
"""Run the orderfile system health benchmarks and collect log files.

    Args:
      apk: The location of the chrome apk file to profile.

    Returns:
      A list of cygprofile data files.

    Raises:
      NoProfileDataError: No data was found on the device.
    """
A list of cygprofile data files.
A list of cygprofile data files .
No data was found on the device.
No data was found on the device .
NoProfileDataError
self
apk
The location of the chrome apk file to profile.
The location of the chrome apk file to profile .