Its so nice to have a profiler
- From: Tim M <365nice@xxxxxxxxx>
- Date: Thu, 13 Dec 2007 09:55:26 +0000 (UTC)
Ian - not seen you around much (actually everyone seems to be quiet recently - hopefully buying Xmas presents or busily coding) - but wanted to thank you for the Profiler!
I've not had to use it before - but today I added 1000 records to my app and it dragged to a crawl - "Damn it must be that category filtering code I just
added" I thought. But I heard that little voice that said to use a profiler, so I went and got it out - took me a moment to figure out where to start but ended up with:
Profiler profiler: [ myModel recaclulateFilter; expandTree ] inSetNamed: 'Filtering'
And you know what - 95% in #expandTree
I had to laugh - it was classic, not my filtering at all, but just me trying to be helpful to expand the tree in my UI - so I changed it to select the first item (which will expand if necessary) and now its snappy again.
I did get a small walkback though - I think becuase I used the profiling method above, in the UI it wanted to dispaly a name for something and my block of code doesn't come from a method? I had to add a #ifNotNil check.
ProfilerSelectorListPresenter>>selectedMethod
^self selectionOrNil ifNotNil: [:value | value object]
At some point we should put together a zip file with all the best packages and an install script that loads them up to create a "Developer Image". I see such images around for squeak, and while we can't provide an image, a script and zip would amount to the same thing.
Tim
.
- Follow-Ups:
- Re: Its so nice to have a profiler
- From: IanB
- Re: Its so nice to have a profiler
- Prev by Date: Re: LookupTable>>at:ifAbsentPut:
- Next by Date: Re: Creating DolphinSure Certificates
- Previous by thread: LookupTable>>at:ifAbsentPut:
- Next by thread: Re: Its so nice to have a profiler
- Index(es):
Relevant Pages
|
Loading