| Index: systrace/systrace/tracing_agents/atrace_from_file_agent.py
|
| diff --git a/systrace/systrace/tracing_agents/atrace_from_file_agent.py b/systrace/systrace/tracing_agents/atrace_from_file_agent.py
|
| index fadd96ca2e768026926d16a38b670cc0872f8936..70eaf70b77d6e43eed7252e90fa013e1ea7415a6 100644
|
| --- a/systrace/systrace/tracing_agents/atrace_from_file_agent.py
|
| +++ b/systrace/systrace/tracing_agents/atrace_from_file_agent.py
|
| @@ -9,6 +9,7 @@ import re
|
| from systrace import trace_result
|
| from systrace import tracing_agents
|
| from systrace.tracing_agents import atrace_agent
|
| +from telemetry.timeline import trace_data
|
|
|
|
|
| # ADB sends this text to indicate the beginning of the trace data.
|
| @@ -65,6 +66,9 @@ class AtraceFromFileAgent(tracing_agents.TracingAgent):
|
| def GetResults(self, timeout=None):
|
| return trace_result.TraceResult('trace-data', self._trace_data)
|
|
|
| + def CollectAgentTraceData(self, trace_data_builder):
|
| + trace_data_builder.AddTraceFor(trace_data.ATRACE_PART, self._trace_data)
|
| +
|
| def _read_trace_data(self):
|
| with open(self._filename, 'r') as f:
|
| result = f.read()
|
|
|