hpx/performance_counters/performance_counter.hpp

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

namespace hpx
namespace performance_counters

Functions

std::vector<performance_counter> discover_counters(std::string const &name, error_code &ec = throws)
struct performance_counter : public components::client_base<performance_counter, server::base_performance_counter>

Public Types

using base_type = components::client_base<performance_counter, server::base_performance_counter>

Public Functions

performance_counter()
performance_counter(std::string const &name)
performance_counter(std::string const &name, hpx::id_type const &locality)
performance_counter(id_type const &id)
performance_counter(future<id_type> &&id)
performance_counter(hpx::future<performance_counter> &&c)
future<counter_info> get_info() const
counter_info get_info(launch::sync_policy, error_code &ec = throws) const
future<counter_value> get_counter_value(bool reset = false)
counter_value get_counter_value(launch::sync_policy, bool reset = false, error_code &ec = throws)
future<counter_value> get_counter_value() const
counter_value get_counter_value(launch::sync_policy, error_code &ec = throws) const
future<counter_values_array> get_counter_values_array(bool reset = false)
counter_values_array get_counter_values_array(launch::sync_policy, bool reset = false, error_code &ec = throws)
future<counter_values_array> get_counter_values_array() const
counter_values_array get_counter_values_array(launch::sync_policy, error_code &ec = throws) const
future<bool> start()
bool start(launch::sync_policy, error_code &ec = throws)
future<bool> stop()
bool stop(launch::sync_policy, error_code &ec = throws)
future<void> reset()
void reset(launch::sync_policy, error_code &ec = throws)
future<void> reinit(bool reset = true)
void reinit(launch::sync_policy, bool reset = true, error_code &ec = throws)
future<std::string> get_name() const
std::string get_name(launch::sync_policy, error_code &ec = throws) const
template<typename T>
future<T> get_value(bool reset = false)
template<typename T>
T get_value(launch::sync_policy, bool reset = false, error_code &ec = throws)
template<typename T>
future<T> get_value() const
template<typename T>
T get_value(launch::sync_policy, error_code &ec = throws) const

Private Static Functions

template<typename T>
static T extract_value(future<counter_value> &&value)