parameters: (chrome_dir, output_dir, iterations, chrome_frame,
                    startup_type=runner.DEFAULT_STARTUP_TYPE,
                    startup_urls=None)
return_statement: return log_files
docstring: Profiles the chrome instance in chrome_dir for a specified number
    of iterations. If chrome_frame is specified, also profiles Chrome Frame for
    the same number of iterations.
  
    Args:
      chrome_dir: the directory containing Chrome.
      output_dir: the directory where the call trace files are stored.
      iterations: the number of iterations to profile.
      chrome_frame: whether or not to profile Chrome Frame as well.
      session_urls: the list of URL to restore on Chrome startup.
  
    Raises:
      Exception on failure.
docstring_summary: Profiles the chrome instance in chrome_dir for a specified number
    of iterations. If chrome_frame is specified, also profiles Chrome Frame for
    the same number of iterations.
docstring_tokens: Profiles the chrome instance in chrome_dir for a specified number of iterations . If chrome_frame is specified also profiles Chrome Frame for the same number of iterations .
function: def ProfileChrome(chrome_dir, output_dir, iterations, chrome_frame,
                    startup_type=runner.DEFAULT_STARTUP_TYPE,
                    startup_urls=None):
    """Profiles the chrome instance in chrome_dir for a specified number
    of iterations. If chrome_frame is specified, also profiles Chrome Frame for
    the same number of iterations.
  
    Args:
      chrome_dir: the directory containing Chrome.
      output_dir: the directory where the call trace files are stored.
      iterations: the number of iterations to profile.
      chrome_frame: whether or not to profile Chrome Frame as well.
      session_urls: the list of URL to restore on Chrome startup.
  
    Raises:
      Exception on failure.
    """
    if not os.path.exists(output_dir):
      os.makedirs(output_dir)
  
    _LOGGER.info('Profiling Chrome "%s\chrome.exe".', chrome_dir)
    chrome_runner = ChromeProfileRunner(chrome_dir, output_dir,
                                        initialize_profile=True)
    chrome_runner.ConfigureStartup(startup_type, startup_urls)
    chrome_runner.Run(iterations)
  
    log_files = chrome_runner._log_files
  
    if chrome_frame:
      _LOGGER.info('Profiling Chrome Frame in "%s".', chrome_dir)
      chrome_frame_runner = ChromeFrameProfileRunner(chrome_dir, output_dir)
      chrome_frame_runner.Run(iterations)
      log_files.extend(chrome_frame_runner._log_files)
  
    return log_files
function_tokens: def ProfileChrome ( chrome_dir , output_dir , iterations , chrome_frame , startup_type = runner . DEFAULT_STARTUP_TYPE , startup_urls = None ) : if not os . path . exists ( output_dir ) : os . makedirs ( output_dir ) _LOGGER . info ( 'Profiling Chrome "%s\chrome.exe".' , chrome_dir ) chrome_runner = ChromeProfileRunner ( chrome_dir , output_dir , initialize_profile = True ) chrome_runner . ConfigureStartup ( startup_type , startup_urls ) chrome_runner . Run ( iterations ) log_files = chrome_runner . _log_files if chrome_frame : _LOGGER . info ( 'Profiling Chrome Frame in "%s".' , chrome_dir ) chrome_frame_runner = ChromeFrameProfileRunner ( chrome_dir , output_dir ) chrome_frame_runner . Run ( iterations ) log_files . extend ( chrome_frame_runner . _log_files ) return log_files