LLDB mainline
|
Class that holds the configuration used by TraceDumper for traversing and dumping instructions. More...
#include <TraceDumper.h>
Public Attributes | |
bool | forwards = false |
If true, the cursor will be iterated forwards starting from the oldest instruction. | |
bool | raw = false |
Dump only instruction addresses without disassembly nor symbol information. | |
bool | json = false |
Dump in json format. | |
bool | pretty_print_json = false |
When dumping in JSON format, pretty print the output. | |
bool | show_timestamps = false |
For each trace item, print the corresponding timestamp in nanoseconds if available. | |
bool | show_events = false |
Dump the events that happened between instructions. | |
bool | only_events = false |
Dump events and none of the instructions. | |
bool | show_control_flow_kind = false |
For each instruction, print the instruction kind. | |
std::optional< uint64_t > | id |
Optional custom id to start traversing from. | |
std::optional< size_t > | skip |
Optional number of instructions to skip from the starting position of the cursor. | |
Class that holds the configuration used by TraceDumper for traversing and dumping instructions.
Definition at line 21 of file TraceDumper.h.
bool lldb_private::TraceDumperOptions::forwards = false |
If true, the cursor will be iterated forwards starting from the oldest instruction.
Otherwise, the iteration starts from the most recent instruction.
Definition at line 25 of file TraceDumper.h.
Referenced by CommandObjectTraceDumpFunctionCalls::DoExecute(), CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue(), and lldb_private::TraceDumper::TraceDumper().
std::optional<uint64_t> lldb_private::TraceDumperOptions::id |
Optional custom id to start traversing from.
Definition at line 43 of file TraceDumper.h.
Referenced by CommandObjectTraceDumpInstructions::DoExecute(), CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue(), and lldb_private::TraceDumper::TraceDumper().
bool lldb_private::TraceDumperOptions::json = false |
Dump in json format.
Definition at line 30 of file TraceDumper.h.
Referenced by CreateWriter(), CommandObjectTraceDumpFunctionCalls::CommandOptions::SetOptionValue(), and CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue().
bool lldb_private::TraceDumperOptions::only_events = false |
Dump events and none of the instructions.
Definition at line 39 of file TraceDumper.h.
Referenced by lldb_private::TraceDumper::DumpInstructions(), and CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue().
bool lldb_private::TraceDumperOptions::pretty_print_json = false |
When dumping in JSON format, pretty print the output.
Definition at line 32 of file TraceDumper.h.
Referenced by CommandObjectTraceDumpFunctionCalls::CommandOptions::SetOptionValue(), and CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue().
bool lldb_private::TraceDumperOptions::raw = false |
Dump only instruction addresses without disassembly nor symbol information.
Definition at line 28 of file TraceDumper.h.
Referenced by lldb_private::TraceDumper::DumpInstructions(), and CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue().
bool lldb_private::TraceDumperOptions::show_control_flow_kind = false |
For each instruction, print the instruction kind.
Definition at line 41 of file TraceDumper.h.
Referenced by OutputWriterJSON::DumpInstruction(), CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue(), and OutputWriterCLI::TraceItem().
bool lldb_private::TraceDumperOptions::show_events = false |
Dump the events that happened between instructions.
Definition at line 37 of file TraceDumper.h.
Referenced by lldb_private::TraceDumper::DumpInstructions(), and CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue().
bool lldb_private::TraceDumperOptions::show_timestamps = false |
For each trace item, print the corresponding timestamp in nanoseconds if available.
Definition at line 35 of file TraceDumper.h.
Referenced by lldb_private::TraceDumper::CreatRawTraceItem(), CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue(), OutputWriterCLI::TraceItem(), and OutputWriterJSON::TraceItem().
std::optional<size_t> lldb_private::TraceDumperOptions::skip |
Optional number of instructions to skip from the starting position of the cursor.
Definition at line 46 of file TraceDumper.h.
Referenced by CommandObjectTraceDumpInstructions::DoExecute(), CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue(), and lldb_private::TraceDumper::TraceDumper().