[Lldb-commits] [lldb] [LLDB][Telemetry]Define DebuggerTelemetryInfo and related methods (PR #127696)

Vy Nguyen via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 18 17:55:08 PST 2025


================
@@ -73,6 +147,10 @@ class TelemetryManager : public llvm::telemetry::Manager {
 
 private:
   std::unique_ptr<llvm::telemetry::Config> m_config;
+  // Each debugger is assigned a unique ID (session_id).
+  // All TelemetryInfo entries emitted for the same debugger instance
+  // will get the same session_id.
+  llvm::DenseMap<Debugger *, std::string> session_ids;
----------------
oontvoo wrote:

When the debugger is destroyed, we'd remove it from the map. When does a Debugger object get destroyed? Is it when the process dies?

(Unless you're saying there could be multiple different Debugger objects for the same entity?  )

https://github.com/llvm/llvm-project/pull/127696


More information about the lldb-commits mailing list