forked from enlightenment/enlightenment
add debug timing info for gadcon idler populates
SVN revision: 74478
This commit is contained in:
parent
81cbce9d96
commit
5070653af2
|
@ -5166,6 +5166,11 @@ _e_gadcon_custom_populate_idler(void *data __UNUSED__)
|
||||||
double loop;
|
double loop;
|
||||||
|
|
||||||
loop = ecore_loop_time_get();
|
loop = ecore_loop_time_get();
|
||||||
|
#ifndef E17_RELEASE_BUILD
|
||||||
|
static Eina_Bool first = EINA_TRUE;
|
||||||
|
if (first)
|
||||||
|
e_main_ts("gadcon custom populate idler start");
|
||||||
|
#endif
|
||||||
EINA_LIST_FREE(custom_populate_requests, gc)
|
EINA_LIST_FREE(custom_populate_requests, gc)
|
||||||
{
|
{
|
||||||
if (ecore_loop_time_get() - loop >= ecore_animator_frametime_get()) break;
|
if (ecore_loop_time_get() - loop >= ecore_animator_frametime_get()) break;
|
||||||
|
@ -5190,9 +5195,16 @@ _e_gadcon_custom_populate_idler(void *data __UNUSED__)
|
||||||
e_gadcon_layout_thaw(gc->o_container);
|
e_gadcon_layout_thaw(gc->o_container);
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
|
#ifndef E17_RELEASE_BUILD
|
||||||
|
if (first)
|
||||||
|
e_main_ts("gadcon custom populate idler end");
|
||||||
|
#endif
|
||||||
if (!custom_populate_requests)
|
if (!custom_populate_requests)
|
||||||
{
|
{
|
||||||
custom_populate_idler = NULL;
|
custom_populate_idler = NULL;
|
||||||
|
#ifndef E17_RELEASE_BUILD
|
||||||
|
first = EINA_FALSE;
|
||||||
|
#endif
|
||||||
return ECORE_CALLBACK_CANCEL;
|
return ECORE_CALLBACK_CANCEL;
|
||||||
}
|
}
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
|
@ -5210,9 +5222,17 @@ _e_gadcon_provider_populate_idler(void *data __UNUSED__)
|
||||||
EINA_LIST_FOREACH(gadcons, l, gc)
|
EINA_LIST_FOREACH(gadcons, l, gc)
|
||||||
e_gadcon_layout_freeze(gc->o_container);
|
e_gadcon_layout_freeze(gc->o_container);
|
||||||
|
|
||||||
|
#ifndef E17_RELEASE_BUILD
|
||||||
|
static Eina_Bool first = EINA_TRUE;
|
||||||
|
if (first)
|
||||||
|
e_main_ts("gadcon populate idler start");
|
||||||
|
#endif
|
||||||
EINA_LIST_FREE(populate_requests, cc)
|
EINA_LIST_FREE(populate_requests, cc)
|
||||||
{
|
{
|
||||||
if (ecore_loop_time_get() - loop >= ecore_animator_frametime_get()) break;
|
if (ecore_loop_time_get() - loop >= ecore_animator_frametime_get()) break;
|
||||||
|
#ifndef E17_RELEASE_BUILD
|
||||||
|
if (first) e_main_ts(cc->name);
|
||||||
|
#endif
|
||||||
EINA_LIST_FOREACH(gadcon_idle_pos ?: gadcons, gadcon_idle_pos, gc)
|
EINA_LIST_FOREACH(gadcon_idle_pos ?: gadcons, gadcon_idle_pos, gc)
|
||||||
{
|
{
|
||||||
if (ecore_loop_time_get() - loop >= ecore_animator_frametime_get()) goto out;
|
if (ecore_loop_time_get() - loop >= ecore_animator_frametime_get()) goto out;
|
||||||
|
@ -5248,12 +5268,19 @@ _e_gadcon_provider_populate_idler(void *data __UNUSED__)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
|
#ifndef E17_RELEASE_BUILD
|
||||||
|
if (first)
|
||||||
|
e_main_ts("gadcon populate idler end");
|
||||||
|
#endif
|
||||||
EINA_LIST_FOREACH(gadcons, l, gc)
|
EINA_LIST_FOREACH(gadcons, l, gc)
|
||||||
e_gadcon_layout_thaw(gc->o_container);
|
e_gadcon_layout_thaw(gc->o_container);
|
||||||
|
|
||||||
if (!populate_requests)
|
if (!populate_requests)
|
||||||
{
|
{
|
||||||
populate_idler = NULL;
|
populate_idler = NULL;
|
||||||
|
#ifndef E17_RELEASE_BUILD
|
||||||
|
first = EINA_FALSE;
|
||||||
|
#endif
|
||||||
return ECORE_CALLBACK_CANCEL;
|
return ECORE_CALLBACK_CANCEL;
|
||||||
}
|
}
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
|
|
Loading…
Reference in New Issue