Hello,
I have produced a profile with DrGeo on the iPad in an interactive session where the user selects and moves math geometric items around. Underneath the dependees math item are updated and redrawn. The redraw is done so only morphs needing update are declared as changed.
The time profile occurs for about 15s, but yet I don't understand from the profile where are spent the cpu cycles. Any tips to read and understand is appreciated
Enclosed: two captures of the resulting profile.
Hilaire
Hi Hilaire,
it would be better to post the results as text if possible and the equivalent from running on a desktop for comparison. Also what is the problem, slow/ jerky display updates?
No ipads here and I'm not familiar with DrGeo but the procedure for interpreting the results would be the same regardless, ie, to see which chunk is taking the most time *where* it is possible to make some savings. Before that though someone else might like to chip in and remind me if the total 21.5 + 5.1 + 3.5 = 30.1% reflects total CPU time that Squeak is getting. If so then that would definitely be worth looking into. Other than that one thing that jumps out is WorldState>>interCyclePause: and I wonder if you have "higherPerformance" preference set? Setting that preference would effect battery life but maybe it could be selectively set, eg, while dragging?
HTH
-D
On 22/07/11 15:07, Hilaire Fernandes wrote:
Hello,
I have produced a profile with DrGeo on the iPad in an interactive session where the user selects and moves math geometric items around. Underneath the dependees math item are updated and redrawn. The redraw is done so only morphs needing update are declared as changed.
The time profile occurs for about 15s, but yet I don't understand from the profile where are spent the cpu cycles. Any tips to read and understand is appreciated
Enclosed: two captures of the resulting profile.
Hilaire
On 7/22/2011 16:07, Hilaire Fernandes wrote:
Hello,
I have produced a profile with DrGeo on the iPad in an interactive session where the user selects and moves math geometric items around. Underneath the dependees math item are updated and redrawn. The redraw is done so only morphs needing update are declared as changed.
The time profile occurs for about 15s, but yet I don't understand from the profile where are spent the cpu cycles. Any tips to read and understand is appreciated
Enclosed: two captures of the resulting profile.
It doesn't look as if these profiles are complete (you can see it in the first picture where WorldState>>doOneCycleFor: only accounts for 21% of the total time spent). It would be good if you a) include all processes in the profile and b) copy the text into the email (instead of taking a picture) so that we can look at the the various parts in context.
Cheers, - Andreas
Hello,
Thanks for your feedbacks.
The profile is complete, at least how it was given back to me. Now I remember I struggled for a several seconds to stop the profiling (i.e. moving the mouse cursor on the top of the screen area, it was not obvious with the iPad ;). Can it explains the only 21% ?
Regarding the screenshot, obviously I can't do it differently, at least with the image I was using. I hope I can find another solution but not right now.
Thanks
Hilaire
Le 22/07/2011 20:41, Andreas Raab a écrit :
On 7/22/2011 16:07, Hilaire Fernandes wrote:
Hello,
I have produced a profile with DrGeo on the iPad in an interactive session where the user selects and moves math geometric items around. Underneath the dependees math item are updated and redrawn. The redraw is done so only morphs needing update are declared as changed.
The time profile occurs for about 15s, but yet I don't understand from the profile where are spent the cpu cycles. Any tips to read and understand is appreciated
Enclosed: two captures of the resulting profile.
It doesn't look as if these profiles are complete (you can see it in the first picture where WorldState>>doOneCycleFor: only accounts for 21% of the total time spent). It would be good if you a) include all processes in the profile and b) copy the text into the email (instead of taking a picture) so that we can look at the the various parts in context.
Cheers,
- Andreas
On Sat, 23 Jul 2011, Hilaire Fernandes wrote:
Hello,
Thanks for your feedbacks.
The profile is complete, at least how it was given back to me. Now I remember I struggled for a several seconds to stop the profiling (i.e. moving the mouse cursor on the top of the screen area, it was not obvious with the iPad ;). Can it explains the only 21% ?
It's incomplete, because it doesn't include other processes. Use MessageTally >> spyAllOn: instead of TimeProfileBrowser.
Regarding the screenshot, obviously I can't do it differently, at least with the image I was using. I hope I can find another solution but not right now.
MessageTally will give you a piece of text that you can include in your mail.
Levente
Thanks
Hilaire
Le 22/07/2011 20:41, Andreas Raab a écrit :
On 7/22/2011 16:07, Hilaire Fernandes wrote:
Hello,
I have produced a profile with DrGeo on the iPad in an interactive session where the user selects and moves math geometric items around. Underneath the dependees math item are updated and redrawn. The redraw is done so only morphs needing update are declared as changed.
The time profile occurs for about 15s, but yet I don't understand from the profile where are spent the cpu cycles. Any tips to read and understand is appreciated
Enclosed: two captures of the resulting profile.
It doesn't look as if these profiles are complete (you can see it in the first picture where WorldState>>doOneCycleFor: only accounts for 21% of the total time spent). It would be good if you a) include all processes in the profile and b) copy the text into the email (instead of taking a picture) so that we can look at the the various parts in context.
Cheers,
- Andreas
-- Education 0.2 -- http://blog.ofset.org/hilaire
Le 23/07/2011 10:38, Levente Uzonyi a écrit :
On Sat, 23 Jul 2011, Hilaire Fernandes wrote:
Hello,
Thanks for your feedbacks.
The profile is complete, at least how it was given back to me. Now I remember I struggled for a several seconds to stop the profiling (i.e. moving the mouse cursor on the top of the screen area, it was not obvious with the iPad ;). Can it explains the only 21% ?
It's incomplete, because it doesn't include other processes. Use MessageTally >> spyAllOn: instead of TimeProfileBrowser.
Sure. It is not that simple from the iPad.
Regarding the screenshot, obviously I can't do it differently, at least with the image I was using. I hope I can find another solution but not right now.
MessageTally will give you a piece of text that you can include in your mail.
I know what is MessageTally but from the iPad you cannot copy and paste, at least not obviously.
On Sat, 23 Jul 2011, Hilaire Fernandes wrote:
Le 23/07/2011 10:38, Levente Uzonyi a écrit :
On Sat, 23 Jul 2011, Hilaire Fernandes wrote:
Hello,
Thanks for your feedbacks.
The profile is complete, at least how it was given back to me. Now I remember I struggled for a several seconds to stop the profiling (i.e. moving the mouse cursor on the top of the screen area, it was not obvious with the iPad ;). Can it explains the only 21% ?
It's incomplete, because it doesn't include other processes. Use MessageTally >> spyAllOn: instead of TimeProfileBrowser.
Sure. It is not that simple from the iPad.
Evaluate the following in a workspace to profile all processes for 10 seconds:
[ MessageTally spyAllOn: [ 10 seconds asDelay wait ] ] fork
Regarding the screenshot, obviously I can't do it differently, at least with the image I was using. I hope I can find another solution but not right now.
MessageTally will give you a piece of text that you can include in your mail.
I know what is MessageTally but from the iPad you cannot copy and paste, at least not obviously.
Somehow you could export the png images, I'm sure the same way you can export any text.
Levente
-- Education 0.2 -- http://blog.ofset.org/hilaire
And to compare the numbers, here is the profile of the same DrGeo sketch interaction but on a PC workstation. Very different indeed.
Hilaire
Resending as it seems to be blocked.
Hilaire
Le 23/07/2011 11:48, Levente Uzonyi a écrit :
Sure. It is not that simple from the iPad.
Evaluate the following in a workspace to profile all processes for 10 seconds:
[ MessageTally spyAllOn: [ 10 seconds asDelay wait ] ] fork
I will try later when I can do a Alt-d. Bert proposed me a solution.
Somehow you could export the png images, I'm sure the same way you can export any text.
No it is not possible in the same way. My son shown me how to do screenshot on the iPad, application independently. As far as I know the clipboard does not work, or does it? But still to mention I can not do a Alt-c right now.
I have another profile with all processes. I sill have struggled to stop the profile, but here it is. First screenshot just shows what on screen. They keyboard was off when the profile occurred.
Thanks.
Hilaire
And the interactive sketched profiled was as in the picture included.
Hilaire
Le 23/07/2011 12:40, Hilaire Fernandes a écrit :
Resending as it seems to be blocked.
squeak-dev@lists.squeakfoundation.org