blob: 6dfbaa5b48efa6b4e1895d48f99ef4d4eb917553 [file] [log] [blame]
# Copyright 2020 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.tracing_agent import chrome_tracing_agent
# A class that uses ReportEvents mode for chrome tracing.
class ChromeReportEventsTracingAgent(chrome_tracing_agent.ChromeTracingAgent):
def __init__(self, platform_backend, config):
super(ChromeReportEventsTracingAgent, self).__init__(
platform_backend, config)
def IsSupported(cls, platform_backend):
return platform_backend.GetOSName() == 'fuchsia'
def _GetTransferMode(self):
return 'ReportEvents'
def _StartStartupTracing(self, config):
del config
# Fuchsia doesn't support starting tracing with a config file
return False
def _RemoveTraceConfigFile(self):