Go to the documentation of this file.
9 #ifndef LLVM_SUPPORT_TIMEPROFILER_H
10 #define LLVM_SUPPORT_TIMEPROFILER_H
17 class raw_pwrite_stream;
19 struct TimeTraceProfiler;
50 StringRef FallbackFileName);
This is an optimization pass for GlobalISel generic memory operations.
The TimeTraceScope is a helper class to call the begin and end functions of the time trace profiler.
TimeTraceProfiler * getTimeTraceProfilerInstance()
void timeTraceProfilerWrite(raw_pwrite_stream &OS)
Write profiling data to output stream.
void timeTraceProfilerCleanup()
Cleanup the time trace profiler, if it was initialized.
TimeTraceScope(StringRef Name, StringRef Detail)
void timeTraceProfilerFinishThread()
Finish a time trace profiler running on a worker thread.
void timeTraceProfilerInitialize(unsigned TimeTraceGranularity, StringRef ProcName)
Initialize the time trace profiler.
void timeTraceProfilerBegin(StringRef Name, StringRef Detail)
Manually begin a time section, with the given Name and Detail.
An efficient, type-erasing, non-owning reference to a callable.
TimeTraceScope & operator=(const TimeTraceScope &)=delete
StringRef - Represent a constant reference to a string, i.e.
bool timeTraceProfilerEnabled()
Is the time trace profiler enabled, i.e. initialized?
TimeTraceScope(StringRef Name)
TimeTraceScope(StringRef Name, llvm::function_ref< std::string()> Detail)
void timeTraceProfilerEnd()
Manually end the last time section.