version 1.1, 2001/05/03 13:41:10 |
version 1.2, 2001/05/23 12:34:49 |
|
|
to allow for concurrent adjustment to variables. |
to allow for concurrent adjustment to variables. |
*/ |
*/ |
|
|
#include "make.h" |
#include "config.h" |
|
#include "defines.h" |
#include "stats.h" |
#include "stats.h" |
|
|
#ifdef HAS_STATS |
#ifdef HAS_STATS |
|
|
static float average_runs(unsigned long val); |
static float average_runs(unsigned long val); |
unsigned long *statarray; |
unsigned long *statarray; |
|
|
static Boolean mmapped = FALSE; |
static bool mmapped = false; |
|
|
static float |
static float |
average_runs(val) |
average_runs(val) |
|
|
PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); |
PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); |
if (statarray == MAP_FAILED) |
if (statarray == MAP_FAILED) |
exit(1); |
exit(1); |
mmapped = TRUE; |
mmapped = true; |
} |
} |
} else |
} else |
/* or we don't -> simple stats gathering */ |
/* or we don't -> simple stats gathering */ |