30template <Statistic_allowed_type Type>
32 std::size_t thread_num,
36 auto &stat = ins_res.first->second;
37 stat.init(thread_num, enable);
40template <Statistic_allowed_type Type>
51template <Statistic_allowed_type Type>
Statistic_type_traits< Type >::type & get_stat(const std::string &name)
Get accumulated statistic value w/o bound checking.
Definition: statistics_instance_monitor_impl.hpp:53
void register_stat(const std::string &name, std::size_t thread_num=1, bool enable=true)
Get statistic value.
Definition: statistics_instance_monitor_impl.hpp:31
std::optional< std::reference_wrapper< typename Statistic_type_traits< Type >::type > > find_stat(const std::string &name)
Get accumulated statistic value.
Definition: statistics_instance_monitor_impl.hpp:43
Registry_type m_registry
Definition: statistics_instance_monitor.h:90
Definition: base_dependency_tracker.h:41
required string type
Definition: replication_group_member_actions.proto:34
case opt name
Definition: sslopt-case.h:29
Helper structure that translates types between underlying supported statistic type and concrete concu...
Definition: statistics_type_traits.h:38