9 #ifndef LLVM_SUPPORT_TIME_PROFILER_H 10 #define LLVM_SUPPORT_TIME_PROFILER_H 16 struct TimeTraceProfiler;
30 return TimeTraceProfilerInstance !=
nullptr;
62 if (TimeTraceProfilerInstance !=
nullptr)
66 if (TimeTraceProfilerInstance !=
nullptr)
70 if (TimeTraceProfilerInstance !=
nullptr)
74 if (TimeTraceProfilerInstance !=
nullptr)
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
TimeTraceScope(StringRef Name, StringRef Detail)
The TimeTraceScope is a helper class to call the begin and end functions of the time trace profiler...
An efficient, type-erasing, non-owning reference to a callable.
void timeTraceProfilerEnd()
Manually end the last time section.
void timeTraceProfilerInitialize(unsigned TimeTraceGranularity, StringRef ProcName)
Initialize the time trace profiler.
void timeTraceProfilerCleanup()
Cleanup the time trace profiler, if it was initialized.
bool timeTraceProfilerEnabled()
Is the time trace profiler enabled, i.e. initialized?
void timeTraceProfilerBegin(StringRef Name, StringRef Detail)
Manually begin a time section, with the given Name and Detail.
TimeTraceScope(StringRef Name, llvm::function_ref< std::string()> Detail)
TimeTraceScope & operator=(const TimeTraceScope &)=delete
void timeTraceProfilerWrite(raw_pwrite_stream &OS)
Write profiling data to output file.
TimeTraceProfiler * TimeTraceProfilerInstance
An abstract base class for streams implementations that also support a pwrite operation.
StringRef - Represent a constant reference to a string, i.e.
TimeTraceScope(StringRef Name)