Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gtimer check: little cleanup (show the previous caller id)
  • Loading branch information
perexg committed Apr 24, 2015
1 parent 03f044a commit 209d022
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.c
Expand Up @@ -488,6 +488,8 @@ mainloop(void)
struct timespec ts;
#if ENABLE_GTIMER_CHECK
int64_t mtm;
const char *id;
const char *fcn;
#endif

while(tvheadend_running) {
Expand Down Expand Up @@ -524,6 +526,8 @@ mainloop(void)

#if ENABLE_GTIMER_CHECK
mtm = getmonoclock();
id = gti->gti_id;
fcn = gti->gti_fcn;
#endif
cb = gti->gti_callback;

Expand All @@ -533,7 +537,7 @@ mainloop(void)
cb(gti->gti_opaque);

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

Expand Down

0 comments on commit 209d022

Please sign in to comment.