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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 03:19:39 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 {
----------------
jh7370 wrote:

(Probably irrelevant if this is going away, but typo `oconst` -> `const override`)

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


More information about the llvm-commits mailing list