Chromium Code Reviews| 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..193f3dc0f0021eeb8ef15a8e1a1b6325498bc76a 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,19 @@ 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. |
|
Zhen Wang
2016/08/27 15:32:41
The comments need some revision. startup tracing's
washingtonp
2016/08/29 06:40:02
Done.
|
| + options = optparse.OptionGroup(parser, '') |
| + return options |
| + |
| +def get_config(options): |
| + # pylint: disable=unused-argument |
| + return ChromeStartupConfig() |