add e_main_ts() to provide a facility for debugging time spent on certain activities in main loop

SVN revision: 74423
This commit is contained in:
Mike Blumenkrantz 2012-07-26 08:21:52 +00:00
parent a72afa83fc
commit c2ad72cf6b
2 changed files with 7 additions and 0 deletions

View File

@ -227,6 +227,7 @@ typedef struct _E_Rect E_Rect;
EAPI E_Before_Idler *e_main_idler_before_add(int (*func) (void *data), void *data, int once);
EAPI void e_main_idler_before_del(E_Before_Idler *eb);
EAPI void e_main_ts(const char *str);
struct _E_Before_Idler
{

View File

@ -1154,6 +1154,12 @@ e_main_idler_before_del(E_Before_Idler *eb)
eb->delete_me = 1;
}
EAPI void
e_main_ts(const char *str)
{
TS(str);
}
/* local functions */
static void
_e_main_shutdown(int errcode)