[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 13:04:27 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:
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
More information about the lldb-commits
mailing list