Commit c853fbf8 authored by Joanne Hugé's avatar Joanne Hugé

WIP

parent 28494895
......@@ -59,8 +59,10 @@ static void *timerthread(void *p) {
for (stat->nb_cycles = 0;; stat->nb_cycles++) {
if (param->max_cycles && (stat->nb_cycles >= param->max_cycles)) break;
tracing(1);
clock_gettime(CLOCK_ID, &previous);
clock_gettime(CLOCK_ID, &current);
tracing(0);
diff = calcdiff_ns(current, previous);
......
......@@ -110,7 +110,7 @@ void setup_tracer(void) {
printf("unable to open %s for tracing", path);
}
tracing(1);
tracing(0);
}
void tracing(int on) {
......
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