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

Unified Diff: systrace/systrace/tracing_agents/atrace_from_file_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/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()

Powered by Google App Engine
This is Rietveld 408576698