telemetry.internal.platform.tracing_agent | index telemetry/internal/platform/tracing_agent/__init__.py

`# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Package Contents
`` |  |
chrome_tracing_agent chrome_tracing_agent_unittest | chrome_tracing_devtools_manager display_tracing_agent | display_tracing_agent_unittest |

Classes
`` |  | __builtin__.object TracingAgent
class TracingAgent(__builtin__.object)
`` | `A tracing agent provided by the platform. A tracing agent can gather data with Start() until Stop(). Before constructing an TracingAgent, check whether it's supported on the platform with IsSupported method first. NOTE: All subclasses of TracingAgent must not change the constructor's parameters so the agents can be dynamically constructed in tracing_controller_backend.`
| Methods defined here: Start(self, trace_options, category_filter, timeout) `Override to add tracing agent's custom logic to start tracing. Depending on trace_options and category_filter, the tracing agent may choose to start or not start tracing. Args: trace_options: an instance of tracing_options.TracingOptions that control which core tracing systems should be enabled. category_filter: an instance of tracing_category_filter.TracingCategoryFilter timeout: number of seconds that this tracing agent should try to start tracing until time out. Returns: True if tracing agent started succesfully.` Stop(self, trace_data_builder) `Override to add tracing agent's custom logic to stop tracing. Stop() should guarantee tracing is stopped, even if there may be exception.` __init__(self, platform_backend) Class methods defined here: IsSupported(cls, _platform_backend) from __builtin__.type Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`