LLVM 22.0.0git
TimeProfiler.h File Reference

Go to the source code of this file.

Classes

class  llvm::TimeTraceScope
 The TimeTraceScope is a helper class to call the begin and end functions of the time trace profiler. More...

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Enumerations

enum class  llvm::TimeTraceEventType { llvm::CompleteEvent , llvm::InstantEvent , llvm::AsyncEvent }

Functions

LLVM_ABI TimeTraceProfilerllvm::getTimeTraceProfilerInstance ()
LLVM_ABI bool llvm::isTimeTraceVerbose ()
LLVM_ABI void llvm::timeTraceProfilerInitialize (unsigned TimeTraceGranularity, StringRef ProcName, bool TimeTraceVerbose=false)
 Initialize the time trace profiler.
LLVM_ABI void llvm::timeTraceProfilerCleanup ()
 Cleanup the time trace profiler, if it was initialized.
LLVM_ABI void llvm::timeTraceProfilerFinishThread ()
 Finish a time trace profiler running on a worker thread.
bool llvm::timeTraceProfilerEnabled ()
 Is the time trace profiler enabled, i.e. initialized?
LLVM_ABI void llvm::timeTraceProfilerWrite (raw_pwrite_stream &OS)
 Write profiling data to output stream.
LLVM_ABI Error llvm::timeTraceProfilerWrite (StringRef PreferredFileName, StringRef FallbackFileName)
 Write profiling data to a file.
LLVM_ABI TimeTraceProfilerEntryllvm::timeTraceProfilerBegin (StringRef Name, StringRef Detail)
 Manually begin a time section, with the given Name and Detail.
LLVM_ABI TimeTraceProfilerEntryllvm::timeTraceProfilerBegin (StringRef Name, llvm::function_ref< std::string()> Detail)
LLVM_ABI TimeTraceProfilerEntryllvm::timeTraceProfilerBegin (StringRef Name, llvm::function_ref< TimeTraceMetadata()> MetaData)
LLVM_ABI TimeTraceProfilerEntryllvm::timeTraceAsyncProfilerBegin (StringRef Name, StringRef Detail)
 Manually begin a time section, with the given Name and Detail.
LLVM_ABI void llvm::timeTraceAddInstantEvent (StringRef Name, llvm::function_ref< std::string()> Detail)
LLVM_ABI void llvm::timeTraceProfilerEnd ()
 Manually end the last time section.
LLVM_ABI void llvm::timeTraceProfilerEnd (TimeTraceProfilerEntry *E)