[lldb] [llvm] [lldb]Implement LLDB Telemetry (PR #98528)
Vy Nguyen via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 10:33:06 PDT 2024
================
@@ -754,6 +760,7 @@ class Debugger : public std::enable_shared_from_this<Debugger>,
uint32_t m_interrupt_requested = 0; ///< Tracks interrupt requests
std::mutex m_interrupt_mutex;
+ std::shared_ptr<LldbTelemeter> m_telemeter;
----------------
oontvoo wrote:
The use of "shared_ptr" here is to ensure the object can be "shared" with different parts of the code - and not so much about the telemter outliving its debugger.
But I suppose we can make it a unique_ptr and just share the raw pointer around, if you prefer?
https://github.com/llvm/llvm-project/pull/98528
More information about the llvm-commits
mailing list