SpaceTally new printSpaceAnalysis: 1 on: strm

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SpaceTally new printSpaceAnalysis: 1 on: strm

Hannes Hirzel
Hello

Juan added the following 'Useful expression' to the help menu


"'Anaylize memory usage by class."

    (String streamContents: [ :strm | SpaceTally new
printSpaceAnalysis: 1 on: strm ]) edit.


BTW   Anaylize--> Analyze


'From Cuis 4.1 of 12 December 2012 [latest update: #1535] on 4 January
2013 at 7:07:51 am'!
Class                           code space # instances  inst space percent
Bitmap                                4027         479       9766072    73.8
CompiledMethod                       19871       16257       1079727     8.2
Array                                 1705       16109        568848     4.3
String                               19703       16710        357878     2.7
TrieNode                              1883       14232        284640     2.2
Symbol                                3937       13745        277724     2.1
ByteArray                             4547          19        154792     1.2
WeakArray                              860          43        146944     1.1
TrieLeaf                               560       10674        128088     1.0
MethodDictionary                      2118        1310        126148     1.0
Association                            662        6436         77232     0.6


So the major part of the image is taken by instances of Bitmap.

Interesting....


Kind regards
Hannes

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: SpaceTally new printSpaceAnalysis: 1 on: strm

Juan Vuletich-4
Hi Hannes,

H. Hirzel wrote:

> Hello
>
> Juan added the following 'Useful expression' to the help menu
>
>
> "'Anaylize memory usage by class."
>
>     (String streamContents: [ :strm | SpaceTally new
> printSpaceAnalysis: 1 on: strm ]) edit.
>
>
> BTW   Anaylize--> Analyze
>  

Thanks. Cuis should include an English spell checker to validate
comments and strings... Maybe method names too!

> 'From Cuis 4.1 of 12 December 2012 [latest update: #1535] on 4 January
> 2013 at 7:07:51 am'!
> Class                           code space # instances  inst space percent
> Bitmap                                4027         479       9766072    73.8
> CompiledMethod                       19871       16257       1079727     8.2
> Array                                 1705       16109        568848     4.3
> String                               19703       16710        357878     2.7
> TrieNode                              1883       14232        284640     2.2
> Symbol                                3937       13745        277724     2.1
> ByteArray                             4547          19        154792     1.2
> WeakArray                              860          43        146944     1.1
> TrieLeaf                               560       10674        128088     1.0
> MethodDictionary                      2118        1310        126148     1.0
> Association                            662        6436         77232     0.6
>
>
> So the major part of the image is taken by instances of Bitmap.
>
> Interesting....
>  

Yes. If you remove the desktop background and reduce the color depth of
anti aliased fonts, you can reduce the image to about half the size. See
#reduceCuis. In addition, it is very easy to disable the autocompletion
mechanism and save some space used by TrieNode and TrieLeaf. BTW, the
autocompletion implementation is really one of Cuis' "best kept
secrets". Just check it. It is way better than ecompletion and
ocompletion, and it would deserve to be adopted for Squeak...

> Kind regards
> Hannes
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
>
>  


_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: SpaceTally new printSpaceAnalysis: 1 on: strm

garduino
Hi!

2013/1/4 Juan Vuletich <[hidden email]>
Hi Hannes,


H. Hirzel wrote:
Hello

Juan added the following 'Useful expression' to the help menu


"'Anaylize memory usage by class."

    (String streamContents: [ :strm | SpaceTally new
printSpaceAnalysis: 1 on: strm ]) edit.


BTW   Anaylize--> Analyze
 

Thanks. Cuis should include an English spell checker to validate comments and strings... Maybe method names too!


Interesting idea!
 

'From Cuis 4.1 of 12 December 2012 [latest update: #1535] on 4 January
2013 at 7:07:51 am'!
Class                           code space # instances  inst space percent
Bitmap                                4027         479       9766072    73.8
CompiledMethod                       19871       16257       1079727     8.2
Array                                 1705       16109        568848     4.3
String                               19703       16710        357878     2.7
TrieNode                              1883       14232        284640     2.2
Symbol                                3937       13745        277724     2.1
ByteArray                             4547          19        154792     1.2
WeakArray                              860          43        146944     1.1
TrieLeaf                               560       10674        128088     1.0
MethodDictionary                      2118        1310        126148     1.0
Association                            662        6436         77232     0.6


So the major part of the image is taken by instances of Bitmap.

Interesting....
 

Yes. If you remove the desktop background and reduce the color depth of anti aliased fonts, you can reduce the image to about half the size. See #reduceCuis. In addition, it is very easy to disable the autocompletion mechanism and save some space used by TrieNode and TrieLeaf. BTW, the autocompletion implementation is really one of Cuis' "best kept secrets". Just check it. It is way better than ecompletion and ocompletion, and it would deserve to be adopted for Squeak...


Wow, nice to know, I will look into asap.




--
Sincerely,
Germán Arduino
about.me/garduino

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org