24#ifndef AGGREGATED_STATS_H
25#define AGGREGATED_STATS_H
static my_thread_id thread_id
Definition: my_thr_init.cc:63
uint32 my_thread_id
Definition: my_thread_local.h:34
Similar to System_status_var, implements atomic counters for status variables whose values are calcul...
Definition: aggregated_stats_buffer.h:42
To facilitate calculating values of status variables aggregated per all THDs in real-time,...
Definition: aggregated_stats.h:39
aggregated_stats_buffer & get_shard(my_thread_id thread_id)
Definition: aggregated_stats.h:42
void flush()
Definition: aggregated_stats.cc:27
uint64_t get_single_total(size_t offset)
Definition: aggregated_stats.cc:40
constexpr static size_t STAT_SHARD_COUNT
Definition: aggregated_stats.h:40
aggregated_stats_buffer shards_[STAT_SHARD_COUNT]
Definition: aggregated_stats.h:51
void get_total(aggregated_stats_buffer &result)
Definition: aggregated_stats.cc:33