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

Unified Diff: systrace/profile_chrome/atrace_tracing_agent_unittest.py

Issue 2276263003: Pass in custom options to Systrace agents (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Rebase Created 4 years, 4 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/atrace_tracing_agent_unittest.py
diff --git a/systrace/profile_chrome/atrace_tracing_agent_unittest.py b/systrace/profile_chrome/atrace_tracing_agent_unittest.py
index 8460e9b491bd8b63d4cab7a82a79d3b3bec9c2d7..8ec9ebca8b42de2637eeebe347012cb188209725 100644
--- a/systrace/profile_chrome/atrace_tracing_agent_unittest.py
+++ b/systrace/profile_chrome/atrace_tracing_agent_unittest.py
@@ -14,14 +14,13 @@ class AtraceAgentTest(agents_unittest.BaseAgentTest):
assert 'gfx' in ' '.join(categories)
def testTracing(self):
- categories = ['gfx', 'input', 'view']
+ categories = 'gfx,input,view'
ring_buffer = False
agent = atrace_tracing_agent.AtraceAgent(self.device,
- categories,
ring_buffer)
try:
- agent.StartAgentTracing(None, None)
+ agent.StartAgentTracing(atrace_tracing_agent.AtraceConfig(categories))
finally:
agent.StopAgentTracing()
result = agent.GetResults()
« no previous file with comments | « systrace/profile_chrome/atrace_tracing_agent.py ('k') | systrace/profile_chrome/chrome_startup_tracing_agent.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698