llvm::InstrProfWriter

Writer for instrumentation based profile data.

Synopsis

Declared in <llvm/ProfileData/InstrProfWriter.h>

class InstrProfWriter;

Type Aliases

NameDescription
ProfilingData Map from function hash to instrumentation profile record.

Member Functions

NameDescription
InstrProfWriter [constructor]Construct an instrumentation profile writer.
~InstrProfWriter [destructor]Destroy the writer and release owned resources.
addBinaryIds Append binary IDs to the writer's binary ID list.
addDataAccessProfData Set the data-access profile data owned by this writer.
addMemProfData Add the entire MemProf data set to the writer context.
addRecord addRecord overloads
addTemporalProfileTraces Add temporal profile traces using reservoir sampling.
addVTableName Record a vtable name for inclusion in the profile.
getProfileData Return the map of function names to profile data.
getProfileKind Return the attributes of the profile held by this writer.
hasSingleByteCoverage Return true if the profile uses single-byte coverage counters.
mergeProfileKind Update the attributes of the current profile from the attributes specified. An error is returned if IR and FE profiles are mixed.
mergeRecordsFromWriter Merge existing function counts from the given writer.
overlapRecord Compute profile overlap between this writer and Other.
setMemProfFullSchema Set whether to serialize the full MemProf schema.
setMemProfVersionRequested Set the MemProf indexed format version to write.
setOutputSparse Set whether the writer emits a sparse profile.
setValueProfDataEndianness Set the endianness used when writing value-profiling data.
validateRecord Validate that a profile record is consistent before writing.
write write overloads
writeBuffer Write the profile, returning the raw data. For testing.
writeText Write the profile in text format to OS.
writeTextTemporalProfTraceData Write temporal profile trace data to the header in text format.

Static Member Functions

NameDescription
writeRecordInText Write a single profile record in text format to OS.