================
@@ -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:

This is a lazily-populated map. We are not associating the TelemetryManager 
with any Debugger. Rather, each TelemetryInfo entry may carry a pointer to a 
debugger. We compute some unique-ID for each debugger and put it in this map to 
re-use rather than having to re-compute everytime

https://github.com/llvm/llvm-project/pull/127696
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to