[Lldb-commits] [lldb] [lldb] Implement coalescing of disjoint progress events (PR #84854)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 12 10:48:50 PDT 2024


================
@@ -146,19 +147,31 @@ class ProgressManager {
   void Increment(const Progress::ProgressData &);
   void Decrement(const Progress::ProgressData &);
 
+  static void Initialize();
+  static void Terminate();
+  static bool Enabled();
   static ProgressManager &Instance();
 
-private:
+protected:
   enum class EventType {
     Begin,
     End,
   };
   static void ReportProgress(const Progress::ProgressData &progress_data,
                              EventType type);
 
-  llvm::StringMap<std::pair<uint64_t, Progress::ProgressData>>
-      m_progress_category_map;
-  std::mutex m_progress_map_mutex;
+  static std::optional<ProgressManager> &InstanceImpl();
+
+  void Expire(llvm::StringRef key);
+  struct Entry {
----------------
adrian-prantl wrote:

same here

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


More information about the lldb-commits mailing list