LLDB mainline
|
#include <Telemetry.h>
Public Member Functions | |
CommandInfo ()=default | |
llvm::telemetry::KindType | getKind () const override |
void | serialize (llvm::telemetry::Serializer &serializer) const override |
Public Member Functions inherited from lldb_private::telemetry::LLDBBaseTelemetryInfo | |
llvm::telemetry::KindType | getKind () const override |
void | serialize (llvm::telemetry::Serializer &serializer) const override |
Static Public Member Functions | |
static bool | classof (const llvm::telemetry::TelemetryInfo *T) |
static uint64_t | GetNextID () |
Static Public Member Functions inherited from lldb_private::telemetry::LLDBBaseTelemetryInfo | |
static bool | classof (const llvm::telemetry::TelemetryInfo *t) |
Public Attributes | |
UUID | target_uuid |
If the command is/can be associated with a target entry this field contains that target's UUID. | |
uint64_t | command_id = 0 |
A unique ID for a command so the manager can match the start entry with its end entry. | |
std::string | command_name |
The command name(eg., "breakpoint set") | |
std::optional< lldb::ReturnStatus > | ret_status |
Return status of a command and any error description in case of error. | |
std::optional< std::string > | error_data |
std::optional< std::string > | original_command |
These two fields are not collected by default due to PII risks. | |
std::optional< std::string > | args |
Public Attributes inherited from lldb_private::telemetry::LLDBBaseTelemetryInfo | |
SteadyTimePoint | start_time |
Start time of an event. | |
std::optional< SteadyTimePoint > | end_time |
End time of an event - may be empty if not meaningful. | |
lldb::user_id_t | debugger_id = LLDB_INVALID_UID |
Debugger * | debugger = nullptr |
Static Private Attributes | |
static std::atomic< uint64_t > | g_command_id_seed = 1 |
Definition at line 119 of file Telemetry.h.
|
default |
|
inlinestatic |
Definition at line 148 of file Telemetry.h.
References lldb_private::telemetry::LLDBEntryKind::CommandInfo.
|
inlineoverride |
Definition at line 144 of file Telemetry.h.
References lldb_private::telemetry::LLDBEntryKind::CommandInfo.
|
static |
Definition at line 80 of file Telemetry.cpp.
References g_command_id_seed.
Referenced by lldb_private::CommandInterpreter::HandleCommand().
|
override |
Definition at line 63 of file Telemetry.cpp.
References args, command_id, command_name, error_data, original_command, ret_status, lldb_private::telemetry::LLDBBaseTelemetryInfo::serialize(), and target_uuid.
std::optional<std::string> lldb_private::telemetry::CommandInfo::args |
Definition at line 136 of file Telemetry.h.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), and serialize().
uint64_t lldb_private::telemetry::CommandInfo::command_id = 0 |
A unique ID for a command so the manager can match the start entry with its end entry.
These values only need to be unique within the same session. Necessary because we'd send off an entry right before a command's execution and another right after. This is to avoid losing telemetry if the command does not execute successfully.
Definition at line 128 of file Telemetry.h.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), and serialize().
std::string lldb_private::telemetry::CommandInfo::command_name |
The command name(eg., "breakpoint set")
Definition at line 130 of file Telemetry.h.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), and serialize().
std::optional<std::string> lldb_private::telemetry::CommandInfo::error_data |
Definition at line 140 of file Telemetry.h.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), and serialize().
|
staticprivate |
Definition at line 162 of file Telemetry.h.
Referenced by GetNextID().
std::optional<std::string> lldb_private::telemetry::CommandInfo::original_command |
These two fields are not collected by default due to PII risks.
Vendor may allow them by setting the LLDBConfig::detailed_command_telemetry.
Definition at line 135 of file Telemetry.h.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), and serialize().
std::optional<lldb::ReturnStatus> lldb_private::telemetry::CommandInfo::ret_status |
Return status of a command and any error description in case of error.
Definition at line 139 of file Telemetry.h.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), and serialize().
UUID lldb_private::telemetry::CommandInfo::target_uuid |
If the command is/can be associated with a target entry this field contains that target's UUID.
<EMPTY> otherwise.
Definition at line 122 of file Telemetry.h.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), and serialize().