Index: systrace/profile_chrome/chrome_startup_tracing_agent.py |
diff --git a/systrace/profile_chrome/chrome_startup_tracing_agent.py b/systrace/profile_chrome/chrome_startup_tracing_agent.py |
index a7693007c023611e37276f384901b9896104aff5..d3c0129756ca9066c354a4073574999008eddafb 100644 |
--- a/systrace/profile_chrome/chrome_startup_tracing_agent.py |
+++ b/systrace/profile_chrome/chrome_startup_tracing_agent.py |
@@ -2,6 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import optparse |
import os |
import py_utils |
import re |
@@ -56,7 +57,7 @@ class ChromeStartupTracingAgent(tracing_agents.TracingAgent): |
self._flag_changer.Restore() |
@py_utils.Timeout(tracing_agents.START_STOP_TIMEOUT) |
- def StartAgentTracing(self, options, categories, timeout=None): |
+ def StartAgentTracing(self, config, timeout=None): |
self._SetupTracing() |
self._logcat_monitor.Start() |
@@ -86,3 +87,17 @@ class ChromeStartupTracingAgent(tracing_agents.TracingAgent): |
def RecordClockSyncMarker(self, sync_id, did_record_sync_marker_callback): |
assert self.SupportsExplicitClockSync(), ('Clock sync marker cannot be ' |
'recorded since explicit clock sync is not supported.') |
+ |
+class ChromeStartupConfig(tracing_agents.TracingConfig): |
+ def __init__(self): |
+ tracing_agents.TracingConfig.__init__(self) |
+ |
+def add_options(parser): |
+ # The Chrome startup agent is not exposed to the user and thus has no |
+ # command line options. |
+ options = optparse.OptionGroup(parser, '') |
+ return options |
+ |
+def get_config(options): |
+ # pylint: disable=unused-argument |
+ return ChromeStartupConfig() |