[Vm-dev] QVMProfiling plugin and Squeak

Eliot Miranda eliot.miranda at gmail.com
Mon Jun 2 19:57:50 UTC 2014


Hi Timothy,


On Mon, Jun 2, 2014 at 11:58 AM, gettimothy <gettimothy at zoho.com> wrote:

>
> Hi All,
>
> I am not going to bother with the QVMProfileMacSupportPlugin that Pharo
> has and Squeak does not for the following reasons.
>
> 1. On pharo while the plugin exists in Smalltalk class, the only
> CMakeGenerator that uses it is broken.
> 2. There is no source code for this plugin in the pharo source tree.
> 3. In source.squeak.org VMMaker.oscog there is Qwaq-VMProfiling-eem.66
> --which is not a plugin, but has both an uppercase  'Q' and a lowercase
> 'q'--so that tells me its robust (:
>     actually, its category is CogTools-VMProfiler which implies it does
> the job.
>
>
>
> The  pharo QVMProfileMacSupprtPlugin has one method:
> primitiveExecutableModulesAndOffsets  and its class comment reads as such:
>
>
> This class provides support for the VMProfiler on MacOS X. This support is
> for reading symbols from the executable. We can use the OS's nm command to
> list symbols in the VM executable and loaded libraries. To do this we need
> to know what libraries are loaded, not simply which libraries are linked
> against, since some libraries are loaded dynamically, and for each loaded
> library what the vm address relocation, if any, is for the loaded library.
> The primitive primitiveExecutableModulesAndOffsets returns these as an
> array of pairs, module name to relocation.
>
>
> If somebody "really really" wants the thing, I will continue digging, but
> my impression is that the Cog work has bypassed the
> QVMProfileMacSupportPlugin.
>

The Q versions are old (when the code was from Qwaq).

The plugins are

    VMProfileLinuxSupportPlugin
    VMProfileMacSupportPlugin

They are important and should be included if at all possible.  They
certainly work on Linux and Mac OS X respectively.  hey enable the
VMProfiler, which is a really handy piece of kit.

-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20140602/5a977bda/attachment.htm


More information about the Vm-dev mailing list