Revert "[libc] Breakup freelist_malloc into separate files" (#119749)
[llvm-project.git] / lldb / source / Plugins / TraceExporter / ctf / TraceExporterCTF.h
blob74f14fc354d1d5a06cd6b007660762457d281cc6
1 //===-- TraceExporterCTF.h --------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_TRACE_EXPORTER_CTF_H
10 #define LLDB_SOURCE_PLUGINS_TRACE_EXPORTER_CTF_H
12 #include "lldb/Target/TraceExporter.h"
14 namespace lldb_private {
15 namespace ctf {
17 /// Trace Exporter Plugin that can produce traces in Chrome Trace Format.
18 /// Still in development.
19 class TraceExporterCTF : public TraceExporter {
20 public:
21 ~TraceExporterCTF() override = default;
23 /// PluginInterface protocol
24 /// \{
25 static llvm::Expected<lldb::TraceExporterUP> CreateInstance();
27 llvm::StringRef GetPluginName() override {
28 return GetPluginNameStatic();
31 static void Initialize();
33 static void Terminate();
35 static llvm::StringRef GetPluginNameStatic() { return "ctf"; }
36 /// \}
39 } // namespace ctf
40 } // namespace lldb_private
42 #endif // LLDB_SOURCE_PLUGINS_TRACE_EXPORTER_CTF_H