llvm::xray::loadProfile

This function will attempt to load an XRay Profiling Mode profile from the provided Filename.

Synopsis

Declared in <llvm/XRay/Profile.h>

Expected<Profile>
loadProfile(StringRef Filename);

Description

For any errors encountered in the loading of the profile data from Filename, this function will return an Error condition appropriately.

Return Value

Loaded Profile, or an Error on failure.

Parameters

NameDescription
FilenamePath to the XRay profiling-mode profile file to load.