[squeak-dev] Profiling
Bob Arning
arning315 at comcast.net
Thu Jan 10 11:51:42 UTC 2013
Can you write a snippet that exhibits the same behavior, both to show us
and to try on non-cog? What does #commit look like? What does the
dictionary look like?
Cheers,
Bob
On 1/9/13 11:33 PM, Colin Putney wrote:
> Hi all,
>
> I'm trying to optimize some slow code, but having trouble getting a
> time profile that shows where the time is being spent. Here's the
> results from MessageTally class>>spyOn:
>
> - 31249 tallies, 31251 msec.
>
> **Tree**
> --------------------------------
> Process: other processes
> --------------------------------
> 3.9% {1233ms} EventSensor>>eventTickler
> 3.9% {1231ms} Delay>>wait
> --------------------------------
> Process: (40s) 77070: nil
> --------------------------------
> 95.5% {29853ms} ALReadWriteTransaction(ALTransaction)>>commit:
> 95.5% {29848ms} ALReadWriteTransaction>>commit
> 94.7% {29593ms} Dictionary>>keysAndValuesDo:
> 94.7% {29593ms} Dictionary>>associationsDo:
> **Leaves**
> 94.7% {29593ms} Dictionary>>associationsDo:
> 3.9% {1231ms} Delay>>wait
>
> **Memory**
> old+891,120 bytes
> young-273,076 bytes
> used+618,044 bytes
> free-618,044 bytes
>
> **GCs**
> full0 totalling 0 ms (0% uptime)
> incr56 totalling 28 ms (0.1% uptime), avg 0.5 ms
> tenures12 (avg 4 GCs/tenure)
> root table0 overflows
>
>
>
>
> Obviously, Dictionary>>associationsDo: isn't really a leaf method. I
> suspect that Cog is generating native code for the contents of the
> loop and it's not getting interrupted by the tally process. (I've
> tried running on an interpreter VM, but it fails with FFI errors, so
> no help there.)
>
> Anybody have any ideas for how to get a better profile?
>
> Colin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130110/9136fa28/attachment.htm
More information about the Squeak-dev
mailing list
|