64 debugger.
ref(), trace_description_file.
ref());
71 return SBTrace(trace_or_err.get());
86 if (llvm::Expected<lldb::TraceCursorSP> trace_cursor_sp =
91 llvm::toString(trace_cursor_sp.takeError()).c_str());
105 else if (Expected<FileSpec> desc_file =
129 else if (llvm::Error err =
143 if (llvm::Error err =
144 m_opaque_sp->Start(std::vector<lldb::tid_t>{thread.GetThreadID()},
167 else if (llvm::Error err =
m_opaque_sp->Stop({thread.GetThreadID()}))
174 return this->
operator bool();
177SBTrace::operator
bool()
const {
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_INSTRUMENT_VA(...)
lldb_private::Debugger & ref() const
void SetFileSpec(const lldb_private::FileSpec &fspec)
const lldb_private::FileSpec & ref() const
StructuredDataImplUP m_impl_up
const char * GetStartConfigurationHelp()
SBTrace()
Default constructor for an invalid Trace object.
SBError Start(const SBStructuredData &configuration)
Start tracing all current and future threads in a live process using a provided configuration.
SBTraceCursor CreateNewCursor(SBError &error, SBThread &thread)
Get a TraceCursor for the given thread's trace.
SBError Stop()
Stop tracing all threads in a live process.
static SBTrace LoadTraceFromFile(SBError &error, SBDebugger &debugger, const SBFileSpec &trace_description_file)
See SBDebugger::LoadTraceFromFile.
lldb::SBTrace & operator=(const lldb::SBTrace &rhs)
SBFileSpec SaveToDisk(SBError &error, const SBFileSpec &bundle_dir, bool compact=false)
Save the trace to the specified directory, which will be created if needed.
lldb::ProcessWP m_opaque_wp
deprecated
lldb::TraceSP m_opaque_sp
static Status FromErrorString(const char *str)
const char * Intern(llvm::StringRef str) const
static StringPoolRef GetSystemPool()
The system pool. Only valid between Initialize and Terminate.
static llvm::Expected< lldb::TraceSP > LoadPostMortemTraceFromFile(Debugger &debugger, const FileSpec &trace_description_file)
Load a trace from a trace description file and create Targets, Processes and Threads based on the con...
A class that represents a running process on the host machine.
std::string toString(FormatterBytecode::OpCodes op)
std::shared_ptr< lldb_private::Trace > TraceSP
class LLDB_API SBTraceCursor