================
@@ -152,6 +154,11 @@ timeTraceProfilerBegin(StringRef Name,
 TimeTraceProfilerEntry *timeTraceAsyncProfilerBegin(StringRef Name,
                                                     StringRef Detail);
 
+// Mark an instant event.
+void timeTraceProfilerInsert(StringRef Name,
+                             llvm::function_ref<TimeTraceMetadata()> Metadata);
+void timeTraceProfilerInsert(StringRef Name, StringRef Detail);
+
----------------
usx95 wrote:

ATM, we are not using the overload with `StringRef Detail`. If we include only 
the name and not the location info, we could just use that and drop the 
overload with `llvm::function_ref<TimeTraceMetadata()> Metadata)`.

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

Reply via email to