Hi every body!
The size of my image is always increasing. Squeak 3.7, 216 Mb. An analysis (SpaceTally new printSpaceAnalysis) shows that 75% is used for Bitmap. I don't know where the bitmaps are, and where are they coming from. How can get rid of them?
Note: To reduce the image size, I already tried the following: Space analyse -> SpaceTally new printSpaceAnalysis. Empty the trash -> Utilities emptyScrapsBook. Clear command history -> CommandHistory resetAllHistory. Manual Garbage Collect call -> Smalltalk garbageCollect.
Thank you in advance for your help. Patrick Chénais
Patrick:
Using Behavior>>allInstancesDo:, Object>>someObject, ProtoObject>>nextObject, and ProtoObject>>pointsTo:, it is possible to compute the transitive closure (as a graph) of all the objects that reference a particular object (such as BitMap.) Careful anaylysis of the object reference graph of the mystery BitMaps should enable you to figure out why they are strongly referenced, and so not being garbage collected.
Perhaps a utility for this purpose already exists for Squeak. It does for VisualWorks.
--Alan
-----Original Message----- From: squeak-dev-bounces@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] On Behalf Of chenais Sent: Wednesday, June 22, 2005 6:56 AM To: squeak-dev@lists.squeakfoundation.org Subject: Increasing image size, how to reduce?
Hi every body!
The size of my image is always increasing. Squeak 3.7, 216 Mb. An analysis (SpaceTally new printSpaceAnalysis) shows that 75% is used for Bitmap. I don't know where the bitmaps are, and where are they coming from. How can get rid of them?
Note: To reduce the image size, I already tried the following: Space analyse -> SpaceTally new printSpaceAnalysis. Empty the trash -> Utilities emptyScrapsBook. Clear command history -> CommandHistory resetAllHistory. Manual Garbage Collect call -> Smalltalk garbageCollect.
Thank you in advance for your help. Patrick Chénais
Am 22.06.2005 um 15:55 schrieb chenais:
Hi every body!
The size of my image is always increasing. Squeak 3.7, 216 Mb. An analysis (SpaceTally new printSpaceAnalysis) shows that 75% is used for Bitmap. I don't know where the bitmaps are, and where are they coming from. How can get rid of them?
From http://minnow.cc.gatech.edu/squeak/2631
Select "self" in your inspector and open the context menu. Choose "chase pointers". This will show you the path from Smalltalk (the system dictionary) down to your object.
If it's blank, select "self" and choose "objects pointing to this value". You'll have to chase these pointers manually until you find what's hanging on to your object and then kill it.
- Bert -
squeak-dev@lists.squeakfoundation.org