36 #if !defined _MONITOR_TRANSACTION_HPP_ 37 #define _MONITOR_TRANSACTION_HPP_ 66 static void end_watch (
bool end_all =
false);
109 std::size_t get_statistics_count (
void)
const;
113 void collect (
const typename statistic_type::rep &value);
118 void extend (std::size_t to);
138 , m_sheet_stats (
NULL)
139 , m_sheet_stats_count (0)
235 return typename statistic_type::rep ();
241 return typename statistic_type::rep ();
275 #endif // _MONITOR_TRANSACTION_HPP_ statistic_type * m_sheet_stats
static const transaction_sheet INVALID_TRANSACTION_SHEET
transaction_sheet_manager(void)=delete
const fetch_mode FETCH_GLOBAL
static transaction_sheet get_sheet(void)
std::uint64_t statistic_value
statistic_type::rep get_value(fetch_mode mode=FETCH_GLOBAL) const
std::size_t m_sheet_stats_count
~transaction_statistic(void)
static void end_watch(bool end_all=false)
std::mutex m_extend_mutex
statistic_type m_global_stat
static unsigned s_sheet_start_count[MAX_SHEETS]
static const std::size_t MAX_SHEETS
transaction_statistic(void)
static enum scanner_mode mode
void collect(const typename statistic_type::rep &value)
static transaction_sheet * s_transaction_sheets
void fetch(statistic_value *destination, fetch_mode mode=FETCH_GLOBAL) const
void extend(std::size_t to)
static std::size_t s_transaction_count
std::size_t get_statistics_count(void) const
static void static_init(void)
static std::mutex s_sheets_mutex
std::size_t transaction_sheet
static std::size_t s_current_sheet_count
static bool start_watch(void)