================
@@ -73,9 +100,50 @@ class TelemetryManager : public llvm::telemetry::Manager {
 
 private:
   std::unique_ptr<llvm::telemetry::Config> m_config;
+  // Each instance of a TelemetryManager is assigned a unique ID.
+  const std::string m_id;
+
   static std::unique_ptr<TelemetryManager> g_instance;
 };
 
+/// Helper RAII class for collecting telemetry.
+template <typename I> struct ScopedDispatcher {
----------------
JDevlieghere wrote:

If you want to go with the single letter, I would go with `T`:
```suggestion
template <typename T> struct ScopedDispatcher {
```

But I'd go with `Info`:
```suggestion
template <typename Info> struct ScopedDispatcher {
```

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