[squeak-dev] The Trunk: System-cmm.503.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Nov 25 00:34:15 UTC 2012
Chris Muller uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-cmm.503.mcz
==================== Summary ====================
Name: System-cmm.503
Author: cmm
Time: 24 November 2012, 6:33:26.696 pm
UUID: 143f13cb-f6b7-4a0e-8439-eac9a70af9c7
Ancestors: System-eem.502
SpaceTally provide results in most-to-least interesting sequence.
=============== Diff against System-eem.502 ===============
Item was changed:
----- Method: SpaceTally>>spaceTally: (in category 'class analysis') -----
+ spaceTally: classes
- spaceTally: classes
"Answer a collection of SpaceTallyItems representing the memory space (in bytes) consumed by the code and instances of each class in the system. Note that code sizes do not currently report memory consumed by class variables. "
-
"((SpaceTally new spaceTally: (Array with: TextMorph with: Point)) asSortedCollection: [:a :b | a spaceForInstances > b spaceForInstances]) asArray"
-
self preAllocateResultsFor: classes.
Smalltalk garbageCollect.
self computeSpaceUsage.
^ results
+ sort: [ : a : b | a spaceForInstances > b spaceForInstances ] ;
+ yourself!
- !
More information about the Squeak-dev
mailing list
|