Hi Norbert,
you may want to put one of your app names {seaside. magritte. magma} and one of the class names into google search. The search result connects you immediately to the collective knowledge of the Squeak community, example:
- http://www.google.com/search?q=weakarray+seaside
Besides of that, you can look for class references and find the guilty who send #new or #new: to one of the classes.
/Klaus
On Wed, 29 Nov 2006 13:00:59 +0100, Norbert Hartl norbert@hartl.name wrote:
On Wed, 2006-11-29 at 01:52 +0100, Klaus D. Witzel wrote:
Hi Norbert,
the tool is Smalltalk, just inspect
(((Smalltalk allClasses collect: [:each | each name -> each instanceCount ]) reject: [:each | each value = 0]) asSortedCollection: [:a :b | b value < a value]) asArray
This gives # of objects per class, in a nice GUI :-)
Thanks, this is quite good. I have now a statistic like:
246565 WeakArray 241929 WeakKeyAssociation 179848 ByteString 171165 Array 159003 Association 130254 WeakValueAssociation
What is the best way to determine where this instances are referenced. Do I have to use PointerFinder or Smalltalk browseAllObjectReferencesTo: or is there better way?
thanks for your help, this goes also to Ramon and David. You are very helpful, guys.
Norbert