create overloads
Synopses
Declared in <llvm/ProfileData/InstrProfReader.h>
Factory method to create an appropriately typed reader for the given instrprof buffer.
static
Expected<std::unique_ptr<InstrProfReader>>
create(
std::unique_ptr<MemoryBuffer> Buffer,
InstrProfCorrelator const* Correlator = nullptr,
object::BuildIDFetcher const* BIDFetcher = nullptr,
InstrProfCorrelator::ProfCorrelatorKind const BIDFetcherCorrelatorKind = InstrProfCorrelator::ProfCorrelatorKind::NONE,
std::function<void(Error)> Warn = nullptr);
Factory method to create an appropriately typed reader for the given instrprof file.
static
Expected<std::unique_ptr<InstrProfReader>>
create(
Twine const& Path,
vfs::FileSystem& FS,
InstrProfCorrelator const* Correlator = nullptr,
object::BuildIDFetcher const* BIDFetcher = nullptr,
InstrProfCorrelator::ProfCorrelatorKind const BIDFetcherCorrelatorKind = InstrProfCorrelator::ProfCorrelatorKind::NONE,
std::function<void(Error)> Warn = nullptr);
Return Value
-
A typed reader for
Buffer,or an error on failure. -
A typed reader for
Path,or an error on failure.
Parameters
Name |
Description |
Buffer |
Memory buffer holding the profile contents. |
Correlator |
Optional correlator for raw profile data. |
BIDFetcher |
Optional build‐ID fetcher for correlation. |
BIDFetcherCorrelatorKind |
Correlation kind used with |
Warn |
Optional callback invoked for non‐fatal warnings. |
Path |
Path to the profile file to open. |
FS |
Virtual file system used to open |
Created with MrDocs