ΒΆllvm::Error timeTraceProfilerWrite(
    llvm::StringRef PreferredFileName,
    llvm::StringRef FallbackFileName)

Description

Write profiling data to a file. The function will write to \p PreferredFileName if provided, if not then will write to \p FallbackFileName appending .time-trace. Returns a StringError indicating a failure if the function is unable to open the file for writing.

Declared at: llvm/include/llvm/Support/TimeProfiler.h:49

Parameters

llvm::StringRef PreferredFileName
llvm::StringRef FallbackFileName