include/ccKVS/inline_util.h
static inline bool trigger_measurement(uint16_t local_client_id)
{
	return c_stats[local_client_id].cache_hits_per_client % K_32 > 0 &&
		   c_stats[local_client_id].cache_hits_per_client % K_32 <= CACHE_BATCH_SIZE &&
		   local_client_id == 0 && machine_id == MACHINE_NUM -1;
}
// A condition to be used to trigger periodic (but rare) measurements
A condition to be used to trigger periodic (but rare) measurements
A condition to be used to trigger periodic ( but rare ) measurements
static inline bool trigger_measurement(uint16_t local_client_id)
{
	return c_stats[local_client_id].cache_hits_per_client % K_32 > 0 &&
		   c_stats[local_client_id].cache_hits_per_client % K_32 <= CACHE_BATCH_SIZE &&
		   local_client_id == 0 && machine_id == MACHINE_NUM -1;
}
static inline bool trigger_measurement ( uint16_t local_client_id ) { return c_stats [ local_client_id ] . cache_hits_per_client % K_32 > 0 && c_stats [ local_client_id ] . cache_hits_per_client % K_32 <= CACHE_BATCH_SIZE && local_client_id == 0 && machine_id == MACHINE_NUM - 1 ; }
A condition to be used to trigger periodic (but rare) measurements
A condition to be used to trigger periodic ( but rare ) measurements