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

Unified Diff: systrace/profile_chrome/perf_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
« no previous file with comments | « systrace/profile_chrome/perf_tracing_agent.py ('k') | systrace/profile_chrome/profiler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: systrace/profile_chrome/perf_tracing_agent_unittest.py
diff --git a/systrace/profile_chrome/perf_tracing_agent_unittest.py b/systrace/profile_chrome/perf_tracing_agent_unittest.py
index 1367e9b759f3aacb0eb1fbdc56cf6eb7f9a3bb75..cd90b3691744ee7cd8982fc8279fe830d689f252 100644
--- a/systrace/profile_chrome/perf_tracing_agent_unittest.py
+++ b/systrace/profile_chrome/perf_tracing_agent_unittest.py
@@ -21,12 +21,11 @@ class PerfProfilerAgentTest(agents_unittest.BaseAgentTest):
if not perf_tracing_agent.PerfProfilerAgent.IsSupported():
return
ui.EnableTestMode()
- categories = ['cycles']
- agent = perf_tracing_agent.PerfProfilerAgent(self.device,
- categories)
+ categories = 'cycles'
+ agent = perf_tracing_agent.PerfProfilerAgent(self.device)
try:
- agent.StartAgentTracing(None, None)
+ agent.StartAgentTracing(perf_tracing_agent.PerfConfig(categories))
finally:
agent.StopAgentTracing()
« no previous file with comments | « systrace/profile_chrome/perf_tracing_agent.py ('k') | systrace/profile_chrome/profiler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698