[Sugar-devel] A trick to profile activities startup time

James Cameron quozl at laptop.org
Thu May 22 17:24:29 EDT 2014


On Thu, May 22, 2014 at 10:10:28AM -0300, Gonzalo Odiard wrote:
> Now, almost all the time, is spent in:
> 
>         1    4.278    4.278    6.741    6.741 activity.py:375(run_main_loop)
> 
> What is that?
> https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity
> /activity.py#L375
> 
>  _initialize_journal_object have a nice FIXME
> 
>         # FIXME: We should be able to get an ID synchronously from the DS,
>         # then call async the actual create.
>         # http://bugs.sugarlabs.org/ticket/2169
> 
> https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity
> /activity.py#L425
> 
> points to a bug 4 years old :(
> (there are more information in this bug [2].... 7 years old!

Nice find, well done.  I don't know of anybody else having done
profiling like this for about four years, so you may find other ways
to improve startup time.

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Sugar-devel mailing list