24#ifndef OPTION_USAGE_DATA_H
25#define OPTION_USAGE_DATA_H
93 bool set(
bool is_used);
105 bool set_sampled(
bool is_used,
unsigned long log_usage_every_nth_time);
A helper class to handle option usage population.
Definition: option_usage_data.h:74
Option_usage_data(const char *option_name, const mysql_service_registry_t *registry)
Use this constructor at init time.
Definition: option_usage_data.h:81
std::atomic< unsigned > m_counter
Definition: option_usage_data.h:110
Option_usage_data(Option_usage_data &)=delete
const mysql_service_registry_t * m_registry
Definition: option_usage_data.h:109
const char * m_option_name
Definition: option_usage_data.h:108
~Option_usage_data()
Definition: option_usage_data.h:84
bool set(bool is_used)
Records usage.
Definition: option_usage_data.cc:41
bool set_sampled(bool is_used, unsigned long log_usage_every_nth_time)
Records usage (calls Option_usage_data::set()) every Nth call.
Definition: option_usage_data.cc:95
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76