Write MemProf profile data to OS in the requested indexed format version.

Synopsis

Declared in <llvm/ProfileData/IndexedMemProfData.h>

Error
writeMemProf(
    ProfOStream& OS,
    memprof::IndexedMemProfData& MemProfData,
    memprof::IndexedVersion MemProfVersionRequested,
    bool MemProfFullSchema,
    std::unique_ptr<memprof::DataAccessProfData> DataAccessProfileData,
    std::unique_ptr<memprof::MemProfSummary> MemProfSum);

Return Value

Success, or an error if writing fails.

Parameters

Name

Description

OS

Destination stream.

MemProfData

Indexed MemProf records, frames, and call stacks to write.

MemProfVersionRequested

Indexed format version to emit.

MemProfFullSchema

Whether to serialize the full MemInfoBlock schema.

DataAccessProfileData

Optional data‐access profile (Version 4+).

MemProfSum

Optional MemProf summary (Version 4+).

Created with MrDocs