Commit 0fe58fb3 authored by Arianna Aondio's avatar Arianna Aondio

Remote variables not necessary to calculate the hit-rate

parent e91dc411
......@@ -95,7 +95,6 @@ struct pt {
};
struct hitrate {
double lt;
uint64_t lhit, lmiss;
struct ma hr_10;
struct ma hr_100;
......@@ -411,21 +410,16 @@ sample_points(void)
static void
sample_hitrate(void)
{
double tv,dt;
double hr, mr, ratio;
uint64_t hit, miss;
if (VSC_C_main == NULL)
return;
tv = VTIM_mono();
dt = tv - hitrate.lt;
hitrate.lt= tv;
hit = VSC_C_main->cache_hit;
miss = VSC_C_main->cache_miss;
hr = (hit - hitrate.lhit) / dt;
mr = (miss - hitrate.lmiss) / dt;
hr = hit - hitrate.lhit;
mr = miss - hitrate.lmiss;
hitrate.lhit = hit;
hitrate.lmiss = miss;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment