mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
35 lines
670 B
C++
35 lines
670 B
C++
// Copyright 2015 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.
|
|
|
|
#ifndef SHELL_COMMON_TRACING_CONTROLLER_H_
|
|
#define SHELL_COMMON_TRACING_CONTROLLER_H_
|
|
|
|
#include <string>
|
|
|
|
#include "lib/ftl/macros.h"
|
|
|
|
namespace shell {
|
|
|
|
class TracingController {
|
|
public:
|
|
TracingController();
|
|
|
|
~TracingController();
|
|
|
|
void StartTracing();
|
|
|
|
void StopTracing();
|
|
|
|
bool tracing_active() const { return tracing_active_; }
|
|
|
|
private:
|
|
bool tracing_active_;
|
|
|
|
FTL_DISALLOW_COPY_AND_ASSIGN(TracingController);
|
|
};
|
|
|
|
} // namespace shell
|
|
|
|
#endif // SHELL_COMMON_TRACING_CONTROLLER_H_
|