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 const char *GetStartConfigurationHelp(); 19 20 SBFileSpec SaveToDisk(SBError &error, const SBFileSpec &bundle_dir, bool compact = false); 21 22 SBError Start(const SBStructuredData &configuration); 23 24 SBError Start(const SBThread &thread, const SBStructuredData &configuration); 25 26 SBError Stop(); 27 28 SBError Stop(const SBThread &thread); 29 30 explicit operator bool() const; 31 32 bool IsValid(); 33 }; 34 } // namespace lldb 35