LLVM 22.0.0git
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 ()=delete
 RecordWriterTrait (const MemProfSchema *Schema, IndexedVersion V, llvm::DenseMap< CallStackId, LinearCallStackId > *MemProfCallStackIndexes)
std::pair< offset_type, offset_typeEmitKeyDataLength (raw_ostream &Out, key_type_ref K, data_type_ref V)
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)

Detailed Description

Definition at line 605 of file MemProf.h.

Member Typedef Documentation

◆ data_type

◆ data_type_ref

◆ hash_value_type

◆ key_type

◆ key_type_ref

◆ offset_type

Constructor & Destructor Documentation

◆ RecordWriterTrait() [1/2]

llvm::memprof::RecordWriterTrait::RecordWriterTrait ( )
delete

◆ RecordWriterTrait() [2/2]

llvm::memprof::RecordWriterTrait::RecordWriterTrait ( const MemProfSchema * Schema,
IndexedVersion V,
llvm::DenseMap< CallStackId, LinearCallStackId > * MemProfCallStackIndexes )
inline

Definition at line 628 of file MemProf.h.

Member Function Documentation

◆ ComputeHash()

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

Definition at line 634 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 654 of file MemProf.h.

References assert().

◆ EmitKey()

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

Definition at line 648 of file MemProf.h.

References llvm::little.

◆ EmitKeyDataLength()

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

Definition at line 637 of file MemProf.h.

References llvm::little, and N.


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