public static String toString(RuntimeStatisticsAggregator runtimeStatisticsAggregator) { return runtimeStatisticsAggregator.throughputTotal + " " + runtimeStatisticsAggregator.responseDataThroughputTotal + " " + runtimeStatisticsAggregator.numRequestsTotal + " " + runtimeStatisticsAggregator.numHitsTotal + " " + runtimeStatisticsAggregator.numL1CacheHitsTotal + " " + runtimeStatisticsAggregator.numL2CacheHitsTotal + " " + runtimeStatisticsAggregator.cacheStatisticsTotal.getNumItems() + " " + runtimeStatisticsAggregator.cacheStatisticsTotal.getMaxNumItems() + " " + runtimeStatisticsAggregator.cacheStatisticsTotal.getNumManagedBytes() + " " + runtimeStatisticsAggregator.cacheStatisticsTotal.getMaxNumManagedBytes() + " " + DoublePopulationStatisticsAggregator.toString( runtimeStatisticsAggregator.getRequestsPopulationStatistics); }
@Override public CacheStatistics getCacheStatistics() { CacheStatistics keyReaderCacheStatistics = keyFileReader.getCacheStatistics(); return new CacheStatistics( keyReaderCacheStatistics.getNumItems() + cache.size(), keyReaderCacheStatistics.getMaxNumItems() + cache.getMaxNumItems(), keyReaderCacheStatistics.getNumManagedBytes() + cache.getNumManagedBytes(), keyReaderCacheStatistics.getMaxNumManagedBytes() + cache.getMaxNumManagedBytes()); }
public void putToStatistics(DomainStatisticsSummary summary){ summary.set_throughput_total(throughputTotal); summary.set_response_data_throughput_total(responseDataThroughputTotal); summary.set_num_requests_total(numRequestsTotal); summary.set_num_hits_total(numHitsTotal); summary.set_num_l1_cache_hits_total(numL1CacheHitsTotal); summary.set_num_l2_cache_hits_total(numL2CacheHitsTotal); summary.set_cache_num_items(cacheStatisticsTotal.getNumItems()); summary.set_cache_max_num_items(cacheStatisticsTotal.getMaxNumItems()); summary.set_cache_num_managed_bytes(cacheStatisticsTotal.getNumManagedBytes()); summary.set_cache_max_num_managed_bytes(cacheStatisticsTotal.getMaxNumManagedBytes()); summary.set_latency_summary(getRequestsPopulationStatistics.getStatistics()); }