libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
Some basic statistic gathering. More...
#include <cache.hpp>
Public Types | |
typedef unsigned long | accesses_type |
typedef unsigned long | hits_type |
typedef unsigned long | flushes_type |
typedef unsigned long | creations_type |
Public Member Functions | |
constexpr __stdcall | basic_statistics (void) noexcept(true) |
__stdcall | basic_statistics (const basic_statistics &) noexcept(true) |
virtual __stdcall | ~basic_statistics (void) noexcept(true) |
basic_statistics &__fastcall | operator= (const basic_statistics &) noexcept(true) |
accesses_type __fastcall | accesses (void) const noexcept(true) |
Total number of accesses to the cache. More... | |
hits_type __fastcall | hits (void) const noexcept(true) |
Total number of hits into the cache. More... | |
flushes_type __fastcall | flushes (void) const noexcept(true) |
Total number of cache flushes. More... | |
creations_type __fastcall | outstanding_fills (void) const noexcept(true) |
Total number of outstanding cache fills. More... | |
void __fastcall | accessed (void) noexcept(true) |
Increment the "accessed" counter by 1. More... | |
void __fastcall | hit (void) noexcept(true) |
Increment the "total hits" counter by 1. More... | |
void __fastcall | flushed (void) noexcept(true) |
Increment the "total flushes" counter by 1. More... | |
void __fastcall | reset (void) noexcept(true) |
Reset all of the counters. More... | |
Friends | |
tostream & | operator<< (tostream &os, const basic_statistics &stats) |
Write all of the statistics to an output stream, in a formatted manner. More... | |
typedef unsigned long jmmcg::LIBJMMCG_VER_NAMESPACE::cache::basic_statistics::accesses_type |
typedef unsigned long jmmcg::LIBJMMCG_VER_NAMESPACE::cache::basic_statistics::creations_type |
typedef unsigned long jmmcg::LIBJMMCG_VER_NAMESPACE::cache::basic_statistics::flushes_type |
typedef unsigned long jmmcg::LIBJMMCG_VER_NAMESPACE::cache::basic_statistics::hits_type |
|
inlineconstexprnoexcept |
Definition at line 65 of file cache_impl.hpp.
|
inlinenoexcept |
Definition at line 70 of file cache_impl.hpp.
|
inlinevirtualnoexcept |
Definition at line 75 of file cache_impl.hpp.
|
inlinenoexcept |
Increment the "accessed" counter by 1.
Definition at line 122 of file cache_impl.hpp.
|
inlinenoexcept |
Total number of accesses to the cache.
Definition at line 87 of file cache_impl.hpp.
|
inlinenoexcept |
Increment the "total flushes" counter by 1.
Definition at line 132 of file cache_impl.hpp.
|
inlinenoexcept |
Total number of cache flushes.
Definition at line 97 of file cache_impl.hpp.
|
inlinenoexcept |
Increment the "total hits" counter by 1.
Definition at line 127 of file cache_impl.hpp.
|
inlinenoexcept |
Total number of hits into the cache.
Definition at line 92 of file cache_impl.hpp.
|
inlinenoexcept |
Definition at line 79 of file cache_impl.hpp.
|
inlinenoexcept |
Total number of outstanding cache fills.
More useful for the multi-threaded cache to help tune the cache high- and low-water marks and pool size for creating range-data the cache.
Definition at line 102 of file cache_impl.hpp.
|
inlinenoexcept |
Reset all of the counters.
Definition at line 137 of file cache_impl.hpp.
|
friend |
Write all of the statistics to an output stream, in a formatted manner.
os | The output stream, templated for narrow or wide char use, based upon the definition or not of the preprocessor constant JMMCG_WIDE_CHARS. Idf not defined, standard "char" traits are used, otherwise "wchar_t" traits. |
stats | The basic_statistics object that should be written. |
Definition at line 110 of file cache_impl.hpp.