Index: tools/telemetry/telemetry/core/tracing_controller.py |
diff --git a/tools/telemetry/telemetry/core/tracing_controller.py b/tools/telemetry/telemetry/core/tracing_controller.py |
deleted file mode 100644 |
index 15492fd26a4e5257041c736001fb0dddd67df23f..0000000000000000000000000000000000000000 |
--- a/tools/telemetry/telemetry/core/tracing_controller.py |
+++ /dev/null |
@@ -1,61 +0,0 @@ |
-# 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. |
- |
-from telemetry.internal.platform import tracing_agent |
- |
- |
-class TracingController(tracing_agent.TracingAgent): |
- |
- def __init__(self, tracing_controller_backend): |
- """Provides control of the tracing systems supported by telemetry.""" |
- super(TracingController, self).__init__( |
- tracing_controller_backend._platform_backend) |
- self._tracing_controller_backend = tracing_controller_backend |
- |
- def StartTracing(self, tracing_config, timeout=10): |
- """Starts tracing. |
- |
- tracing config contains both tracing options and category filters. |
- |
- trace_options specifies which tracing systems to activate. Category filter |
- allows fine-tuning of the data that are collected by the selected tracing |
- systems. |
- |
- Some tracers are process-specific, e.g. chrome tracing, but are not |
- guaranteed to be supported. In order to support tracing of these kinds of |
- tracers, Start will succeed *always*, even if the tracing systems you have |
- requested are not supported. |
- |
- If you absolutely require a particular tracer to exist, then check |
- for its support after you have started the process in question. Or, have |
- your code fail gracefully when the data you require is not present in the |
- resulting trace. |
- """ |
- self._tracing_controller_backend.StartTracing(tracing_config, timeout) |
- |
- def StopTracing(self): |
- """Stops tracing and returns a TraceValue.""" |
- return self._tracing_controller_backend.StopTracing() |
- |
- @property |
- def is_tracing_running(self): |
- return self._tracing_controller_backend.is_tracing_running |
- |
- def IsChromeTracingSupported(self): |
- """Returns whether chrome tracing is supported.""" |
- return self._tracing_controller_backend.IsChromeTracingSupported() |
- |
- def StartAgentTracing(self, config, timeout=10): |
- """ Starts agent tracing for tracing controller""" |
- return self._tracing_controller_backend.StartAgentTracing(config, timeout) |
- |
- def StopAgentTracing(self, trace_data_builder): |
- """ Stops agent tracing for tracing controller. """ |
- return self._tracing_controller_backend.StopAgentTracing(trace_data_builder) |
- |
- def SupportsExplicitClockSync(self): |
- return self._tracing_controller_backend.SupportsExplicitClockSync() |
- |
- def RecordClockSyncMarker(self, sync_id): |
- return self._tracing_controller_backend.RecordClockSyncMarker(sync_id) |