LLVM 19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | 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 ()=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 565 of file MemProf.h.

Member Typedef Documentation

◆ data_type

Definition at line 570 of file MemProf.h.

◆ data_type_ref

Definition at line 571 of file MemProf.h.

◆ hash_value_type

Definition at line 573 of file MemProf.h.

◆ key_type

Definition at line 567 of file MemProf.h.

◆ key_type_ref

Definition at line 568 of file MemProf.h.

◆ offset_type

Definition at line 574 of file MemProf.h.

Constructor & Destructor Documentation

◆ RecordWriterTrait() [1/2]

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

◆ RecordWriterTrait() [2/2]

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

Definition at line 588 of file MemProf.h.

Member Function Documentation

◆ ComputeHash()

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

Definition at line 594 of file MemProf.h.

◆ EmitData()

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

Definition at line 614 of file MemProf.h.

References assert().

◆ EmitKey()

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

Definition at line 608 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 

Definition at line 597 of file MemProf.h.

References llvm::little, and N.

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