hpx/cache/statistics/no_statistics.hpp#

Defined in header hpx/cache/statistics/no_statistics.hpp.

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

Defines

HPX_CACHE_METHOD_UNSCOPED_ENUM_DEPRECATION_MSG#
namespace hpx
namespace util
namespace cache
namespace statistics

Enums

enum class method#

Values:

enumerator get_entry#
enumerator insert_entry#
enumerator update_entry#
enumerator erase_entry#

Variables

constexpr method method_get_entry = method::get_entry#
constexpr method method_insert_entry = method::insert_entry#
constexpr method method_update_entry = method::update_entry#
constexpr method method_erase_entry = method::erase_entry#
class no_statistics#

Subclassed by hpx::util::cache::statistics::local_statistics

Public Static Functions

static inline constexpr void got_hit() noexcept#

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

static inline constexpr 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.

static inline constexpr void got_insertion() noexcept#

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

static inline constexpr 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.

static inline constexpr void clear() noexcept#

Reset all statistics.

static inline constexpr std::int64_t get_get_entry_count(bool) noexcept#

The function get_get_entry_count returns the number of invocations of the get_entry() API function of the cache.

static inline constexpr std::int64_t get_insert_entry_count(bool) noexcept#

The function get_insert_entry_count returns the number of invocations of the insert_entry() API function of the cache.

static inline constexpr std::int64_t get_update_entry_count(bool) noexcept#

The function get_update_entry_count returns the number of invocations of the update_entry() API function of the cache.

static inline constexpr std::int64_t get_erase_entry_count(bool) noexcept#

The function get_erase_entry_count returns the number of invocations of the erase() API function of the cache.

static inline constexpr std::int64_t get_get_entry_time(bool) noexcept#

The function get_get_entry_time returns the overall time spent executing of the get_entry() API function of the cache.

static inline constexpr std::int64_t get_insert_entry_time(bool) noexcept#

The function get_insert_entry_time returns the overall time spent executing of the insert_entry() API function of the cache.

static inline constexpr std::int64_t get_update_entry_time(bool) noexcept#

The function get_update_entry_time returns the overall time spent executing of the update_entry() API function of the cache.

static inline constexpr std::int64_t get_erase_entry_time(bool) noexcept#

The function get_erase_entry_time returns the overall time spent executing of the erase() API function of the cache.

struct update_on_exit#
#include <no_statistics.hpp>

Helper class to update timings and counts on function exit.

Public Functions

inline constexpr update_on_exit(no_statistics const&, method) noexcept#