On Tue, Sep 14, 2010 at 2:46 PM, Alexandre Bergel <alexandre@bergel.eu> wrote:
Hi Mariano,

I also would like to know what is the % of unused objects in my applications. How can I do it?


Hi Alexandre. Sorry I didn't answer before...I don't read emails while ESUG ;)

First, you need an specific modified VM. I can send it by email or upload it somewhere if you want.

To get that statistics and some more, you have to download the package UnusedObject� from� http://www.squeaksource.com/UsedObjects

Check the class UnusedObjectDiscoverer and its tests. But basically the idea is this:

You first evaluate� "UnusedObjectDiscoverer current startDiscovery."

Once that is done....is your time to do what you want to analyze....run tests, open a workspace, do whatever you want. When you are done, inspect or print the result of: "UnusedObjectDiscoverer current stopDiscoveryAndGetStadistics "

And that's all for the moment ;)

Ahhh I did some Moose DistributionMap if you want. For that you need to load also the package UsedObjectsMoose on a Moose image, and run the class side examples of the class UsedObjectsDistributionMap

Last thing: I condiser an object was used, when it received� at least one message.

Cheers

Mariano

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel �http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project