Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Unified Diff: systrace/profile_chrome/perf_tracing_agent.py

Issue 2712163002: [Systrace] Fix systrace clock syncing issue with BattOr. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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):

Powered by Google App Engine
This is Rietveld 408576698