llvm::timeTraceProfilerInitialize

Initialize the time trace profiler.

Synopsis

Declared in <llvm/Support/TimeProfiler.h>

void
timeTraceProfilerInitialize(
    unsigned int TimeTraceGranularity,
    StringRef ProcName,
    bool TimeTraceVerbose = false);

Description

This sets up the global TimeTraceProfilerInstance variable to be the profiler instance.

Parameters

NameDescription
TimeTraceGranularityMinimum event duration in microseconds to keep.
ProcNameProcess name stored in the trace metadata.
TimeTraceVerboseIf true, capture extra details such as filenames.