logo       

RE: Growing image: msg#00173

lang.smalltalk.squeak.beginners

Subject: RE: Growing image

> -----Original Message-----
> From: beginners-bounces@xxxxxxxxxxxxxxxxxxxxxxxxxx
> [mailto:beginners-bounces@xxxxxxxxxxxxxxxxxxxxxxxxxx] On
> Behalf Of Norbert Hartl
> Sent: Tuesday, November 28, 2006 5:03 PM
> To: Squeak Newbies List
> Subject: [Newbies] Growing image
>
> Hi,
>
> at the moment I'm developing an application with seaside,
> magritte and magma. If I start with a fresh image I only need
> a few days for the image to exceed 100MB in total size.
>
> Is there a way do display the total amount of objects being
> in the image? I think only a vast amount of objects could
> make the image grow that much. A list of object grouped by
> class and sorted by amount would be very helpful.
>
> Is there any such tool?
>
> regards,
>
> Norbert

Inspect the result of the following...

(((Object allSubclasses
reject: [:each | Class allSubclasses includes: each])
select: [:each | each allInstances size > 100])
collect: [:each | each name -> each allInstances size])
asSortedCollection: [:a :b | a value > b value]

It's not fast, but it'll get you what you want.

Ramon Leon
http://onsmalltalk.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise