xref: /openbsd-src/gnu/llvm/lldb/bindings/interface/SBTrace.i (revision f6aab3d83b51b91c24247ad2c2573574de475a82)
1 //===-- SWIG Interface for SBTrace.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 //===----------------------------------------------------------------------===//
8 
9 namespace lldb {
10 
11 %feature("docstring",
12 "Represents a processor trace."
13 ) SBTrace;
14 class LLDB_API SBTrace {
15 public:
16   SBTrace();
17 
18   SBTraceCursor CreateNewCursor(SBError &error, SBThread &thread);
19 
20   const char *GetStartConfigurationHelp();
21 
22   SBFileSpec SaveToDisk(SBError &error, const SBFileSpec &bundle_dir, bool compact = false);
23 
24   SBError Start(const SBStructuredData &configuration);
25 
26   SBError Start(const SBThread &thread, const SBStructuredData &configuration);
27 
28   SBError Stop();
29 
30   SBError Stop(const SBThread &thread);
31 
32   explicit operator bool() const;
33 
34   bool IsValid();
35 };
36 } // namespace lldb
37