[llvm] [llvm]Add a simple Telemetry framework (PR #102323)

Vy Nguyen via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 18:13:24 PST 2024


================
@@ -116,29 +114,29 @@ To use Telemetry in your tool, you need to provide a concrete implementation of
     };
     
     // This defines a custom TelemetryInfo that has an addition Msg field.
-    struct MyTelemetryInfo : public llvm::telemetry::TelemetryInfo {
+    struct MyTelemetryInfo : public telemetry::TelemetryInfo {
       std::string Msg;
       
-      json::Object serializeToJson() const {
-        json::Object Ret = TelemeteryInfo::serializeToJson();
+      json::Object serializeToJson() oconst {
+        json::Object Ret = ManageryInfo::serializeToJson();
----------------
oontvoo wrote:

resolving since it's no longer applicable

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


More information about the llvm-commits mailing list