LLVM 18.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::memprof::RecordWriterTrait Class Reference

#include "llvm/ProfileData/MemProf.h"

Public Types

using key_type = uint64_t
 
using key_type_ref = uint64_t
 
using data_type = IndexedMemProfRecord
 
using data_type_ref = IndexedMemProfRecord &
 
using hash_value_type = uint64_t
 
using offset_type = uint64_t
 

Public Member Functions

 RecordWriterTrait ()=default
 
void EmitKey (raw_ostream &Out, key_type_ref K, offset_type)
 
void EmitData (raw_ostream &Out, key_type_ref, data_type_ref V, offset_type)
 

Static Public Member Functions

static hash_value_type ComputeHash (key_type_ref K)
 
static std::pair< offset_type, offset_typeEmitKeyDataLength (raw_ostream &Out, key_type_ref K, data_type_ref V)
 

Public Attributes

MemProfSchemaSchema = nullptr
 

Detailed Description

Definition at line 499 of file MemProf.h.

Member Typedef Documentation

◆ data_type

Definition at line 504 of file MemProf.h.

◆ data_type_ref

Definition at line 505 of file MemProf.h.

◆ hash_value_type

Definition at line 507 of file MemProf.h.

◆ key_type

Definition at line 501 of file MemProf.h.

◆ key_type_ref

Definition at line 502 of file MemProf.h.

◆ offset_type

Definition at line 508 of file MemProf.h.

Constructor & Destructor Documentation

◆ RecordWriterTrait()

llvm::memprof::RecordWriterTrait::RecordWriterTrait ( )
default

Member Function Documentation

◆ ComputeHash()

static hash_value_type llvm::memprof::RecordWriterTrait::ComputeHash ( key_type_ref  K)
inlinestatic

Definition at line 517 of file MemProf.h.

◆ EmitData()

void llvm::memprof::RecordWriterTrait::EmitData ( raw_ostream Out,
key_type_ref  ,
data_type_ref  V,
offset_type   
)
inline

Definition at line 537 of file MemProf.h.

References assert(), and Schema.

◆ EmitKey()

void llvm::memprof::RecordWriterTrait::EmitKey ( raw_ostream Out,
key_type_ref  K,
offset_type   
)
inline

Definition at line 531 of file MemProf.h.

References llvm::little.

◆ EmitKeyDataLength()

static std::pair< offset_type, offset_type > llvm::memprof::RecordWriterTrait::EmitKeyDataLength ( raw_ostream Out,
key_type_ref  K,
data_type_ref  V 
)
inlinestatic

Definition at line 520 of file MemProf.h.

References llvm::little, and N.

Member Data Documentation

◆ Schema

MemProfSchema* llvm::memprof::RecordWriterTrait::Schema = nullptr

Definition at line 513 of file MemProf.h.

Referenced by EmitData().


The documentation for this class was generated from the following file: