% of unused objects?

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

% of unused objects?

Alexandre Bergel
Hi Mariano,

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

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






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: % of unused objects?

Mariano Martinez Peck


On Tue, Sep 14, 2010 at 2:46 PM, Alexandre Bergel <[hidden email]> 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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project