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

Unified Diff: systrace/profile_chrome/fake_agent_1.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/fake_agent_1.py
diff --git a/systrace/profile_chrome/fake_agent_1.py b/systrace/profile_chrome/fake_agent_1.py
index 62889f4526fe83b9c6679df12fc74885d0e323c3..4428e8a59919f4c63214d6bdb8f9e7e2664aecd7 100644
--- a/systrace/profile_chrome/fake_agent_1.py
+++ b/systrace/profile_chrome/fake_agent_1.py
@@ -7,6 +7,7 @@ import tempfile
from systrace import trace_result
from systrace import tracing_agents
+from telemetry.timeline import trace_data as trace_data_module
class FakeAgent(object):
@@ -50,6 +51,9 @@ class FakeAgent(object):
def __repr__(self):
return 'faketrace'
+ def CollectAgentTraceData(self, builder):
+ builder.AddTraceFor(trace_data_module.SURFACE_FLINGER_PART, 'fake-contents')
+
class FakeConfig(tracing_agents.TracingConfig):
def __init__(self):

Powered by Google App Engine
This is Rietveld 408576698