LLDB mainline
Public Attributes | List of all members
lldb_private::TraceDumperOptions Struct Reference

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.
 

Detailed Description

Class that holds the configuration used by TraceDumper for traversing and dumping instructions.

Definition at line 21 of file TraceDumper.h.

Member Data Documentation

◆ forwards

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().

◆ id

std::optional<uint64_t> lldb_private::TraceDumperOptions::id

◆ json

bool lldb_private::TraceDumperOptions::json = false

◆ only_events

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().

◆ pretty_print_json

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().

◆ raw

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().

◆ show_control_flow_kind

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().

◆ show_events

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().

◆ show_timestamps

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().

◆ skip

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().


The documentation for this struct was generated from the following file: