[clang] [llvm] Added instant events and marking defered templated instantiation. (PR #103039)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 29 06:01:47 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list