aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/bindings/interface/SBTrace.i
blob: 0d74881a3f3d85a8c321dcfa508dba1d2e1a2a3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//===-- SWIG Interface for SBTrace.h ----------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

namespace lldb {

%feature("docstring",
"Represents a processor trace."
) SBTrace;
class LLDB_API SBTrace {
public:
  SBTrace();

  const char *GetStartConfigurationHelp();

  SBFileSpec SaveToDisk(SBError &error, const SBFileSpec &bundle_dir, bool compact = false);

  SBError Start(const SBStructuredData &configuration);

  SBError Start(const SBThread &thread, const SBStructuredData &configuration);

  SBError Stop();

  SBError Stop(const SBThread &thread);

  explicit operator bool() const;

  bool IsValid();
};
} // namespace lldb