guys, let me know what do you think about this change.

cheers

mariano

On Thu, Jan 13, 2011 at 10:20 AM, <pharo@googlecode.com> wrote:
Status: Accepted
Owner: marianopeck
Labels: Milestone-1.2

New issue 3537 by marianopeck: Addinf inst average size to SpaceTally
http://code.google.com/p/pharo/issues/detail?id=3537

Hi. I did a little change to SpaceTally to add one more column which represents the instance average size per class

So. before if you evaluated: SpaceTally new printSpaceAnalysis
you get a file something like this:

Class � � � � � � � � � � � � � code space # instances �inst space percent
Bitmap � � � � � � � � � � � � � � � �3525 � � � � 227 � � � 3373140 � �14.4
Array � � � � � � � � � � � � � � � � 2152 � � � 82896 � � � 2804472 � �12.0
ByteSymbol � � � � � � � � � � � � � �1062 � � � 40714 � � � 1037516 � � 4.4
....

Now, you get something like this:

Class � � � � � � � � � � � � � � � � � � � � �code space # instances �inst space � � percent � inst average size
ByteString � � � � � � � � � � � � � � � � � � � � � 1984 � � � 96048 � � � 6598440 � � � 24.40 � � � � � � � 68.70
Bitmap � � � � � � � � � � � � � � � � � � � � � � � 3525 � � � � 328 � � � 5908048 � � � 21.80 � � � � � �18012.34
CompiledMethod � � � � � � � � � � � � � � � � � � �19125 � � � 65347 � � � 4061396 � � � 15.00 � � � � � � � 62.15
Array � � � � � � � � � � � � � � � � � � � � � � � �2152 � � � 88541 � � � 3024132 � � � 11.20 � � � � � � � 34.16
.....


Pharo core version: 12300