================
@@ -99,6 +105,10 @@ class Progress {
 private:
   void ReportProgress();
   static std::atomic<uint64_t> g_id;
+  static std::atomic<uint64_t> g_refcount;
+  /// Map that tracks each progress object and if we've seen its start and stop
+  /// events
+  static std::unordered_map<std::string, uint64_t> g_map;
----------------
JDevlieghere wrote:

What's the benefit of doing this at the debugger level? The way I imagined this 
to work is like the other subsystems (similar to what Greg described inline). 
The downside of doing the bookkeeping in the debugger, is that we'll have to 
duplicate all this work across debuggers for progress events that are not tied 
to a single debugger. I don't know how easy it would be to change that (if we 
have access to the debugger everywhere we report progress today). Either way 
I'd like to understand the motivation behind it. 

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

Reply via email to