| Index: systrace/systrace/tracing_agents/__init__.py
|
| diff --git a/systrace/systrace/tracing_agents/__init__.py b/systrace/systrace/tracing_agents/__init__.py
|
| index c99428c1de6c3d063d7168dc8731305a02f96104..859d7795c1ea97d075737816db9824d88eb97e10 100644
|
| --- a/systrace/systrace/tracing_agents/__init__.py
|
| +++ b/systrace/systrace/tracing_agents/__init__.py
|
| @@ -16,17 +16,26 @@ START_STOP_TIMEOUT = 10.0
|
| GET_RESULTS_TIMEOUT = 30.0
|
|
|
|
|
| +class TracingConfig(object):
|
| + '''Store the tracing configuration options for all Systrace agents. If there
|
| + are ever any options that are to be shared between all of the agents, those
|
| + options should go here.
|
| + '''
|
| + def __init__(self):
|
| + pass
|
| +
|
| +
|
| class TracingAgent(object):
|
| def __init__(self):
|
| pass
|
|
|
| - def StartAgentTracing(self, options, categories, timeout=None):
|
| + def StartAgentTracing(self, config, timeout=None):
|
| '''Starts running the trace for this agent. Stops with timeout if
|
| not completed within timeout interval.
|
|
|
| Args:
|
| - options: Tracing options.
|
| - categories: Categories of trace events to record.
|
| + config: TracingConfig subclass containing agent-specific options
|
| + and categories.
|
| timeout: Timeout interval in seconds.
|
|
|
| Returns:
|
|
|