Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
reduce gtimer check traces
  • Loading branch information
perexg committed Mar 6, 2016
1 parent 2beb508 commit ed69f76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.c
Expand Up @@ -589,7 +589,9 @@ mtimer_thread(void *aux)
cb(mti->mti_opaque);

#if ENABLE_GTIMER_CHECK
tvhtrace("mtimer", "%s:%s duration %"PRId64"ns", id, fcn, getmonoclock() - mtm);
mtm = getmonoclock() - mtm;
if (mtm > 10000)
tvhtrace("mtimer", "%s:%s duration %"PRId64"us", id, fcn, mtm);
#endif
}

Expand Down Expand Up @@ -670,7 +672,9 @@ mainloop(void)
cb(gti->gti_opaque);

#if ENABLE_GTIMER_CHECK
tvhtrace("gtimer", "%s:%s duration %"PRId64"ns", id, fcn, getmonoclock() - mtm);
mtm = getmonoclock() - mtm;
if (mtm > 10000)
tvhtrace("gtimer", "%s:%s duration %"PRId64"us", id, fcn, mtm);
#endif
}

Expand Down

0 comments on commit ed69f76

Please sign in to comment.