Block-Structured AMR Software Framework
amrex::FabArrayBase::CacheStats Struct Reference

#include <AMReX_FabArrayBase.H>

Public Member Functions

 CacheStats (std::string name_)
 
void recordBuild () noexcept
 
void recordErase (Long n) noexcept
 
void recordUse () noexcept
 
void print () const
 

Public Attributes

int size {0}
 current size: nbuild - nerase More...
 
int maxsize {0}
 highest water mark of size More...
 
Long maxuse {0}
 max # of uses of a cached item More...
 
Long nuse {0}
 
Long nbuild {0}
 
Long nerase {0}
 
Long bytes {0}
 
Long bytes_hwm {0}
 
std::string name
 name of the cache More...
 

Constructor & Destructor Documentation

◆ CacheStats()

amrex::FabArrayBase::CacheStats::CacheStats ( std::string  name_)
inlineexplicit

Member Function Documentation

◆ print()

void amrex::FabArrayBase::CacheStats::print ( ) const
inline

◆ recordBuild()

void amrex::FabArrayBase::CacheStats::recordBuild ( )
inlinenoexcept

◆ recordErase()

void amrex::FabArrayBase::CacheStats::recordErase ( Long  n)
inlinenoexcept

◆ recordUse()

void amrex::FabArrayBase::CacheStats::recordUse ( )
inlinenoexcept

Member Data Documentation

◆ bytes

Long amrex::FabArrayBase::CacheStats::bytes {0}

◆ bytes_hwm

Long amrex::FabArrayBase::CacheStats::bytes_hwm {0}

◆ maxsize

int amrex::FabArrayBase::CacheStats::maxsize {0}

highest water mark of size

◆ maxuse

Long amrex::FabArrayBase::CacheStats::maxuse {0}

max # of uses of a cached item

◆ name

std::string amrex::FabArrayBase::CacheStats::name

name of the cache

◆ nbuild

Long amrex::FabArrayBase::CacheStats::nbuild {0}

of build operations

◆ nerase

Long amrex::FabArrayBase::CacheStats::nerase {0}

of erase operations

◆ nuse

Long amrex::FabArrayBase::CacheStats::nuse {0}

of uses of the whole cache

◆ size

int amrex::FabArrayBase::CacheStats::size {0}

current size: nbuild - nerase


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