Improve debugging notes for main loop start/stop

This way, we can track when we quit the main loop.
This commit is contained in:
Emmanuele Bassi 2015-01-01 15:09:23 +00:00
parent 5b9c6f49c4
commit abda3ee4ce
1 changed files with 6 additions and 2 deletions

View File

@ -837,8 +837,6 @@ clutter_main (void)
return;
}
clutter_main_loop_level++;
#ifdef CLUTTER_ENABLE_PROFILE
if (!prev_poll)
{
@ -847,6 +845,10 @@ clutter_main (void)
}
#endif
clutter_main_loop_level++;
CLUTTER_NOTE (MISC, "Entering main loop level %d", clutter_main_loop_level);
loop = g_main_loop_new (NULL, TRUE);
main_loops = g_slist_prepend (main_loops, loop);
@ -861,6 +863,8 @@ clutter_main (void)
g_main_loop_unref (loop);
CLUTTER_NOTE (MISC, "Leaving main loop level %d", clutter_main_loop_level);
clutter_main_loop_level--;
}