hpx/cache/statistics/local_statistics.hpp#

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace util
namespace cache
namespace statistics#
class local_statistics : public hpx::util::cache::statistics::no_statistics#

Public Functions

local_statistics() = default#
inline std::size_t get_and_reset(std::size_t &value, bool reset) noexcept#
inline constexpr std::size_t hits() const noexcept#
inline constexpr std::size_t misses() const noexcept#
inline constexpr std::size_t insertions() const noexcept#
inline constexpr std::size_t evictions() const noexcept#
inline std::size_t hits(bool reset) noexcept#
inline std::size_t misses(bool reset) noexcept#
inline std::size_t insertions(bool reset) noexcept#
inline std::size_t evictions(bool reset) noexcept#
inline void got_hit() noexcept#

The function got_hit will be called by a cache instance whenever a entry got touched.

inline void got_miss() noexcept#

The function got_miss will be called by a cache instance whenever a requested entry has not been found in the cache.

inline void got_insertion() noexcept#

The function got_insertion will be called by a cache instance whenever a new entry has been inserted.

inline void got_eviction() noexcept#

The function got_eviction will be called by a cache instance whenever an entry has been removed from the cache because a new inserted entry let the cache grow beyond its capacity.

inline void clear() noexcept#

Reset all statistics.

Private Members

std::size_t hits_ = 0#
std::size_t misses_ = 0#
std::size_t insertions_ = 0#
std::size_t evictions_ = 0#