parameters: (self, config, timeout=None)
return_statement: return True
docstring: Starts tracing.
  
      Args:
          config: Tracing config.
  
      Raises:
          RuntimeError: If trace already in progress.
          AssertionError: If There is no BattOr path given and more
              than one BattOr is attached.
docstring_summary: Starts tracing.
docstring_tokens: Starts tracing .
function: def StartAgentTracing(self, config, timeout=None):
      """Starts tracing.
  
      Args:
          config: Tracing config.
  
      Raises:
          RuntimeError: If trace already in progress.
          AssertionError: If There is no BattOr path given and more
              than one BattOr is attached.
      """
      battor_path = self._FindBattOrPath(config)
      self._battor_wrapper = battor_wrapper.BattOrWrapper(
          target_platform=config.target,
          android_device=config.device_serial_number,
          battor_path=battor_path,
          battor_map_file=config.serial_map)
  
      dev_utils = device_utils.DeviceUtils(config.device_serial_number)
      self._battery_utils = battery_utils.BatteryUtils(dev_utils)
      self._battery_utils.SetCharging(False)
      atexit.register(_reenable_charging_if_needed, self._battery_utils)
      self._battor_wrapper.StartShell()
      self._battor_wrapper.StartTracing()
      return True
function_tokens: def StartAgentTracing ( self , config , timeout = None ) : battor_path = self . _FindBattOrPath ( config ) self . _battor_wrapper = battor_wrapper . BattOrWrapper ( target_platform = config . target , android_device = config . device_serial_number , battor_path = battor_path , battor_map_file = config . serial_map ) dev_utils = device_utils . DeviceUtils ( config . device_serial_number ) self . _battery_utils = battery_utils . BatteryUtils ( dev_utils ) self . _battery_utils . SetCharging ( False ) atexit . register ( _reenable_charging_if_needed , self . _battery_utils ) self . _battor_wrapper . StartShell ( ) self . _battor_wrapper . StartTracing ( ) return True