[Lldb-commits] [lldb] [LLDB][Telemetry]Define TargetInfo for collecting data about a target (PR #127834)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 18 10:20:36 PDT 2025
================
@@ -66,6 +75,40 @@ struct LLDBBaseTelemetryInfo : public llvm::telemetry::TelemetryInfo {
void serialize(llvm::telemetry::Serializer &serializer) const override;
};
+/// Describes an exit status.
+struct ExitDescription {
+ int exit_code;
+ std::string description;
+};
+
+struct TargetInfo : public LLDBBaseTelemetryInfo {
+ lldb::ModuleSP exec_mod;
+
+ // The same as the executable-module's UUID.
+ std::string target_uuid;
+ std::string arch_name;
+
+ // If true, this entry was emitted at the beginning of an event (eg., before
+ // the executable laod). Otherwise, it was emitted at the end of an event
+ // (eg., after the module and any dependency were loaded.)
+ bool is_start_entry;
----------------
JDevlieghere wrote:
```suggestion
/// If true, this entry was emitted at the beginning of an event (eg., before
/// the executable laod). Otherwise, it was emitted at the end of an event
/// (eg., after the module and any dependency were loaded.)
bool is_start_entry;
```
https://github.com/llvm/llvm-project/pull/127834
More information about the lldb-commits
mailing list