| Index: systrace/profile_chrome/perf_tracing_agent.py
|
| diff --git a/systrace/profile_chrome/perf_tracing_agent.py b/systrace/profile_chrome/perf_tracing_agent.py
|
| index c6491cd0539fb8bdd3c7da1d0ccc5c4e78b30e55..d1b0853040d581423be7352c6b6f18ca8b4b9930 100644
|
| --- a/systrace/profile_chrome/perf_tracing_agent.py
|
| +++ b/systrace/profile_chrome/perf_tracing_agent.py
|
| @@ -17,6 +17,7 @@ from devil.android.perf import perf_control
|
| from profile_chrome import ui
|
| from systrace import trace_result
|
| from systrace import tracing_agents
|
| +from telemetry.timeline import trace_data as trace_data_module
|
|
|
| _CATAPULT_DIR = os.path.join(
|
| os.path.dirname(os.path.abspath(__file__)), '..', '..')
|
| @@ -142,6 +143,11 @@ class PerfProfilerAgent(tracing_agents.TracingAgent):
|
| trace_data = f.read()
|
| return trace_result.TraceResult('perf', trace_data)
|
|
|
| + def CollectAgentTraceData(self, trace_data_builder):
|
| + with open(self._PullTrace(), 'r') as f:
|
| + data = f.read()
|
| + trace_data_builder.AddTraceFor(trace_data_module.PROFILER_TRACE_PART, data)
|
| +
|
| @staticmethod
|
| def _GetInteractivePerfCommand(perfhost_path, perf_profile, symfs_dir,
|
| required_libs, kallsyms):
|
|
|