LLDB mainline
|
#include <TraceIntelPTBundleSaver.h>
Public Member Functions | |
llvm::Expected< FileSpec > | SaveToDisk (TraceIntelPT &trace_ipt, FileSpec directory, bool compact) |
Save the Intel PT trace of a live process to the specified directory, which will be created if needed. | |
Definition at line 18 of file TraceIntelPTBundleSaver.h.
Expected< FileSpec > TraceIntelPTBundleSaver::SaveToDisk | ( | TraceIntelPT & | trace_ipt, |
FileSpec | directory, | ||
bool | compact | ||
) |
Save the Intel PT trace of a live process to the specified directory, which will be created if needed.
This will also create a file <directory>/trace.json with the description of the trace bundle, along with others files which contain the actual trace data. The trace.json file can be used later as input for the "trace load" command to load the trace in LLDB.
[in] | trace_ipt | The Intel PT trace to be saved to disk. |
[in] | directory | The directory where the trace bundle will be created. |
[in] | compact | Filter out information irrelevant to the traced processes in the context switch and intel pt traces when using per-cpu mode. This effectively reduces the size of those traces. |
Definition at line 355 of file TraceIntelPTBundleSaver.cpp.
References BuildCpusSection(), BuildKernelSection(), BuildProcessesSection(), lldb_private::trace_intel_pt::TraceIntelPT::GetCPUInfo(), lldb_private::FileSpec::GetPath(), lldb_private::trace_intel_pt::TraceIntelPT::GetPerfZeroTscConversion(), lldb_private::trace_intel_pt::TraceIntelPT::GetTraceMode(), lldb_private::FileSystem::Instance(), lldb_private::trace_intel_pt::TraceIntelPT::KernelMode, lldb_private::FileSystem::Resolve(), SaveTraceBundleDescription(), and lldb_private::trace_intel_pt::toJSON().
Referenced by lldb_private::trace_intel_pt::TraceIntelPT::SaveToDisk().