[Sugar-devel] [Dextrose] [PATCH v5 sugar] Pulsing icon delayed by 5 seconds or so SL#2080

Martin Dengler martin at martindengler.com
Thu Oct 28 22:34:35 EDT 2010


On Fri, Oct 29, 2010 at 05:26:40AM +0530, Anurag Chowdhury wrote:
> On Thu, Oct 28, 2010 at 11:12 PM, Martin Dengler
> <martin at martindengler.com> wrote:
> >  to test the time taken by update function everytime
> >> it is called.
> >> I used the time.time() function to measure the time taken to process
> >> the update step.
> >
> > There is a better way: use cProfile and gprof2dot.py.  You will get
> > graphs (and of course the raw data) like this:
> >
> Thanks and I appreciate the pointers., but I did it this way as I
> wanted it simple and to the point. :)

Well, it's simple, but it's not very useful or convincing.

> >> And If you may compare the odd steps of both logs i.e the numbers in
> >> the lines having "seconds taken to update frame" appearing at the odd
> >> steps
> >> (3rd ,5th ,7th.....entries) and similarily compare  the even steps
> >> you may find the average time taken on XO-1.5 to run the update
> >> function was nearly 50% faster.
> >
> > Odd steps?  Even steps?  Sounds scary.  Why?
> >
> Sorry for the confusion. What  I meant to say by frames renders at odd
> steps was 1st frame, 3rd frame , 5th frame.........so on, similarily
> for even frames.

I understood that.  The question is: Why?

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101029/582cd6fe/attachment.pgp>


More information about the Sugar-devel mailing list