Manually begin a time section with a lazily computed detail string.
Synopsis
Declared in <llvm/Support/TimeProfiler.h>
TimeTraceProfilerEntry*
timeTraceProfilerBegin(
StringRef Name,
llvm::function_ref<std::string()> Detail);
Return Value
Profiler entry for the begun section, or nullptr if tracing is off.
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