28 #ifndef Hypertable_RangeServer_LoadStatistics_h
29 #define Hypertable_RangeServer_LoadStatistics_h
117 uint32_t cells_returned, uint64_t bytes_scanned,
118 uint64_t bytes_returned) {
133 uint64_t cached_bytes_returned) {
146 void add_update_data(uint32_t count, uint32_t cells, uint64_t total_bytes, uint32_t syncs) {
186 auto now = std::chrono::steady_clock::now();
187 int64_t period_millis = std::chrono::duration_cast<std::chrono::milliseconds>(now -
m_start_time).count();
199 HT_ERROR(
"mbps calculation over zero time range");
206 HT_INFOF(
"scans=(%u %u %llu %f) updates=(%u %u %llu %f %u)",
247 #endif // Hypertable_RangeServer_LoadStatistics_h
std::chrono::steady_clock::time_point m_start_time
POD-style structure to hold statistics.
int32_t compactions_merging
uint32_t scan_count
Scan count.
uint64_t bytes_scanned
Bytes scanned.
void add_cached_scan_data(uint32_t count, uint32_t cached_cells_returned, uint64_t cached_bytes_returned)
Adds cached scan data to m_running statistics bundle.
void recompute(Bundle *stats=0)
Recomputes statistics.
void clear()
Resets members to zero.
std::mutex m_mutex
Mutex for serializing concurrent access
LoadStatistics(int64_t compute_period)
Constructor.
long long unsigned int Llu
Shortcut for printf formats.
double scan_mbps
Megabytes/s scanned.
uint32_t update_count
Update count.
uint32_t update_cells
Cells updated.
std::shared_ptr< LoadStatistics > LoadStatisticsPtr
Shared smart pointer to LoadStatistics.
void lock()
Locks m_mutex.
void add_update_data(uint32_t count, uint32_t cells, uint64_t total_bytes, uint32_t syncs)
Adds scan data to m_running statistics bundle.
uint64_t cached_bytes_returned
Cached bytes returned.
uint64_t update_bytes
Bytes updated.
Logging routines and macros.
uint32_t cells_returned
Cells returned.
int64_t period_millis
Time period over which stats are computed.
Time related declarations.
int32_t compactions_major
uint32_t sync_count
Sync count.
uint32_t cached_cells_returned
Cached cells returned.
double update_mbps
Megabytes/s updated.
#define HT_INFOF(msg,...)
uint32_t cells_scanned
Cells scanned.
Computes application load statistics.
void increment_compactions_merging()
void unlock()
Unlocks m_mutex.
void increment_compactions_minor()
void add_scan_data(uint32_t count, uint32_t cells_scanned, uint32_t cells_returned, uint64_t bytes_scanned, uint64_t bytes_returned)
Adds scan data to m_running statistics bundle.
uint64_t bytes_returned
Bytes returned.
void increment_compactions_major()
void increment_compactions_gc()
int32_t compactions_minor