cachesim
A cache simulator
|
00001 /* -*- mode:c; coding: utf-8 -*- */ 00002 00003 #include "statistics.h" 00004 00005 void 00006 statistics_add_counter(StatisticsInfo *info, int clock_counter) 00007 { 00008 info->clock_counter = clock_counter; 00009 } 00010 00011 void 00012 statistics_add_hit_counter(StatisticsInfo *info) 00013 { 00014 ++info->hit_counter; 00015 } 00016 00017 void 00018 statistics_add_write_back_counter(StatisticsInfo *info) 00019 { 00020 ++info->write_back_counter; 00021 } 00022 00023 /* 00024 * Local variables: 00025 * c-basic-offset: 4 00026 * End: 00027 */