Record an instant event with the given name and lazily computed detail.
Synopsis
Declared in <llvm/Support/TimeProfiler.h>
void
timeTraceAddInstantEvent(
StringRef Name,
llvm::function_ref<std::string()> Detail);
Parameters
Name |
Description |
Name |
Event name shown in the trace. |
Detail |
Closure that produces the detail; not called if tracing is disabled. |
Created with MrDocs