New Memory Profiler for Pharo

Dear Friends and Colleagues,

We are happy to announce Memory Profiler, a new profiler for Pharo. This profiler gives a nice output that indicates the memory consumption along the method call graph. Consider the following piece of code:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
(MSP profile: [
Object browse
]  onPackagesMatching: ‘Nautilus*’ ) inspect
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Consider that MSP uses instrumentation, therefore long execution may take really long. The code above takes about 19 seconds on my iMac.
It opens a visualization that indicates some interesting fact about memory consumption. For example, the expression “Object browse” consumes 14 851 kb with instances of the class Point. More than 1M of points are created.
Here is the blueprint obtained:
Screen Shot 2015-01-12 at 2.20.44 PM
A description of the visualization is available here:
You need to load Spy from the Configuration Browser. Else the following incantation should work:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Gofer it
smalltalkhubUser: ‘ObjectProfile’ project: ‘S2py’;
configurationOf: ‘Spy’;
loadDevelopment.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Cheers,
Alejandro & Alexandre

— 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: