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 size_t GetTraceData(SBError &error, void *buf, 18 size_t size, size_t offset, 19 lldb::tid_t thread_id); 20 21 size_t GetMetaData(SBError &error, void *buf, 22 size_t size, size_t offset, 23 lldb::tid_t thread_id); 24 25 void StopTrace(SBError &error, 26 lldb::tid_t thread_id); 27 28 void GetTraceConfig(SBTraceOptions &options, 29 SBError &error); 30 31 lldb::user_id_t GetTraceUID(); 32 33 explicit operator bool() const; 34 35 bool IsValid(); 36 37 }; 38 } // namespace lldb