(self, script_dir, options)
Constructor.

    Args:
        script_dir: Directory containing the trace viewer script
                    (systrace_trace_viewer.html)
        options: Object containing command line options.
Constructor.
Constructor .
def __init__(self, script_dir, options):
    """Constructor.

    Args:
        script_dir: Directory containing the trace viewer script
                    (systrace_trace_viewer.html)
        options: Object containing command line options.
    """
    # Parse command line arguments and create agents.
    self._script_dir = script_dir
    self._out_filename = options.output_file
    agents_with_config = tracing_controller.CreateAgentsWithConfig(
        options, AGENT_MODULES)
    controller_config = tracing_controller.GetControllerConfig(options)

    # Set up tracing controller.
    self._tracing_controller = tracing_controller.TracingController(
        agents_with_config, controller_config)
def __init__ ( self , script_dir , options ) : # Parse command line arguments and create agents. self . _script_dir = script_dir self . _out_filename = options . output_file agents_with_config = tracing_controller . CreateAgentsWithConfig ( options , AGENT_MODULES ) controller_config = tracing_controller . GetControllerConfig ( options ) # Set up tracing controller. self . _tracing_controller = tracing_controller . TracingController ( agents_with_config , controller_config )