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 method

Values:

get_entry = 0
insert_entry = 1
update_entry = 2
erase_entry = 3

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 Functions

constexpr void got_hit() const

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

constexpr void got_miss() const

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

constexpr void got_insertion() const

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

constexpr void got_eviction() const

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.

constexpr void clear() const

Reset all statistics.

constexpr std::int64_t get_get_entry_count(bool) const

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

constexpr std::int64_t get_insert_entry_count(bool) const

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

constexpr std::int64_t get_update_entry_count(bool) const

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

constexpr std::int64_t get_erase_entry_count(bool) const

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

constexpr std::int64_t get_get_entry_time(bool) const

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

constexpr std::int64_t get_insert_entry_time(bool) const

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

constexpr std::int64_t get_update_entry_time(bool) const

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

constexpr std::int64_t get_erase_entry_time(bool) const

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

constexpr update_on_exit(no_statistics const&, method)