Portable MemInfoBlock whose fields may be partially serialized by schema.

Synopsis

Declared in <llvm/ProfileData/MemProf.h>

struct PortableMemInfoBlock;

Description

Contents may be read or written partially by providing an appropriate schema to the serialize and deserialize methods.

Member Functions

Name

Description

PortableMemInfoBlock [constructor]

Constructors

clear

Reset this block to an empty default‐constructed state.

deserialize

Populate this block by reading IncomingSchema fields from Ptr.

getSchema

Return the schema bitset; intended for unit tests.

printYAML

Print the MemInfoBlock fields in YAML to OS.

serialize

Write the fields selected by Schema to little‐endian stream OS.

operator==

Return true if Other has the same schema and field values.

operator!=

Return true if Other differs in schema or any field value.

Static Member Functions

Name

Description

serializedSize

Return the serialized size in bytes of the fields in Schema.

Friends

Name

Description

llvm::yaml::CustomMappingTraits<memprof::PortableMemInfoBlock>

YAMLIO custom mapping traits for memprof::PortableMemInfoBlock.

llvm::yaml::CustomMappingTraits

Traits for converting a type to/from a YAML mapping with dynamic keys.

Created with MrDocs