parameters: (self, timeout=None)
return_statement: return self._trace_results
docstring: Collect trace data from battor.
      Args:
        timeout: timeout for waiting on the BattOr process to terminate in
          seconds.
      Returns: Trace data in form of a list.
docstring_summary: Collect trace data from battor.
      Args:
        timeout: timeout for waiting on the BattOr process to terminate in
          seconds.
      Returns: Trace data in form of a list.
docstring_tokens: Collect trace data from battor . Args : timeout : timeout for waiting on the BattOr process to terminate in seconds . Returns : Trace data in form of a list .
function: def CollectTraceData(self, timeout=None):
      """Collect trace data from battor.
      Args:
        timeout: timeout for waiting on the BattOr process to terminate in
          seconds.
      Returns: Trace data in form of a list.
      """
      # The BattOr shell terminates after returning the results.
      if timeout is None:
        timeout = self._stop_tracing_time - self._start_tracing_time
      self._battor_shell.wait()
      with open(self._trace_results_path) as results:
        self._trace_results = results.read()
      self._battor_shell = None
      return self._trace_results
function_tokens: def CollectTraceData ( self , timeout = None ) : # The BattOr shell terminates after returning the results. if timeout is None : timeout = self . _stop_tracing_time - self . _start_tracing_time self . _battor_shell . wait ( ) with open ( self . _trace_results_path ) as results : self . _trace_results = results . read ( ) self . _battor_shell = None return self . _trace_results