23 errs() <<
"\nNumber of memory regions: " << NumSlabs <<
'\n' 24 <<
"Bytes used: " << BytesAllocated <<
'\n' 25 <<
"Bytes allocated: " << TotalMemory <<
'\n' 26 <<
"Bytes wasted: " << (TotalMemory - BytesAllocated)
27 <<
" (includes alignment, etc)\n";
34 size_t FreeListSize) {
35 errs() <<
"Recycler element size: " << Size <<
'\n' 36 <<
"Recycler element alignment: " << Align <<
'\n' 37 <<
"Number of elements free for recycling: " << FreeListSize <<
'\n';
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
This class represents lattice values for constants.
void PrintRecyclerStats(size_t Size, size_t Align, size_t FreeListSize)
PrintRecyclingAllocatorStats - Helper for RecyclingAllocator for printing statistics.
void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated, size_t TotalMemory)
This file defines the MallocAllocator and BumpPtrAllocator interfaces.