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

Unified Diff: systrace/systrace/tracing_agents/ftrace_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/ftrace_agent.py
diff --git a/systrace/systrace/tracing_agents/ftrace_agent.py b/systrace/systrace/tracing_agents/ftrace_agent.py
index cb1e7e15f28c3fa79180cfa8a007219b02159529..476847e6a3311b0890253242719387b2a86c91dc 100644
--- a/systrace/systrace/tracing_agents/ftrace_agent.py
+++ b/systrace/systrace/tracing_agents/ftrace_agent.py
@@ -8,6 +8,7 @@ import py_utils
from systrace import trace_result
from systrace import tracing_agents
+from telemetry.timeline import trace_data as trace_data_module
class FtraceAgentIo(object):
@@ -199,6 +200,11 @@ class FtraceAgent(tracing_agents.TracingAgent):
self._fio.writeFile(FT_BUFFER_SIZE, "1")
return trace_result.TraceResult('trace-data', d)
+ def CollectAgentTraceData(self, trace_data_builder):
+ d = self._fio.readFile(FT_TRACE)
+ self._fio.writeFile(FT_BUFFER_SIZE, "1")
+ trace_data_builder.AddTraceFor(trace_data_module.FTRACE_DATA_PART, d)
+
def SupportsExplicitClockSync(self):
return False

Powered by Google App Engine
This is Rietveld 408576698