[Pharo-project] Introspection on saved image file
Is there a simple way that I can do some introspection on an image file without loading it as the current image for the VM? Specifically, I want to query the classes, methods, packages, etc loaded into the image for documentation purposes, for example from a previous version of an image saved as a snapshot. Is there a way I can do this with built-in functionality? It's easy on the running image, but I don't want to actually load a new VM with an image to check its contents. Would it be possible to use AST or anything like that worst case? Thanks. -- View this message in context: http://forum.world.st/Introspection-on-saved-image-file-tp3027736p3027736.ht... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On Thu, Nov 4, 2010 at 1:38 PM, YossiDM <smalltalk@fixinsbar.com> wrote:
Is there a simple way that I can do some introspection on an image file without loading it as the current image for the VM? Specifically, I want to query the classes, methods, packages, etc loaded into the image for documentation purposes, for example from a previous version of an image saved as a snapshot.
Is there a way I can do this with built-in functionality? It's easy on the running image, but I don't want to actually load a new VM with an image to check its contents. Would it be possible to use AST or anything like that worst case?
very recently someone posted a link to a complete visualization of an image to pdf, I think on the squeak list. So yes, there are tools to do this. You can also load an image using the VMMaker and analyse it in that. Of course a really nice ay would be a mirror interface to the image so one could use standard tools to inspect it, but that's real work. HTH Eliot
Thanks. -- View this message in context: http://forum.world.st/Introspection-on-saved-image-file-tp3027736p3027736.ht... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Thanks, I'll try to dig that up - sounds like a good starting point. I am definitely looking to do the second option you mentioned which is to mirror the image so I can just use standard tools. Our app is mainly from seaside, so that would be the ideal way for me, though I can imagine us doing some things inside the image in morphic as well. I could batch out analysis as a job of some kind, but I would rather have real-time analysis. Eliot Miranda-2 wrote:
very recently someone posted a link to a complete visualization of an image to pdf, I think on the squeak list. So yes, there are tools to do this. You can also load an image using the VMMaker and analyse it in that. Of course a really nice ay would be a mirror interface to the image so one could use standard tools to inspect it, but that's real work.
HTH Eliot
Thanks. -- View this message in context: http://forum.world.st/Introspection-on-saved-image-file-tp3027736p3027736.ht... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- View this message in context: http://forum.world.st/Introspection-on-saved-image-file-tp3027736p3027872.ht... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Hi Yossi-- I've done a lot of work with object memory visualization; check out http://netjam.org/spoon/viz/. I'd be happy to discuss it further. greetings, -C -- Craig Latta www.netjam.org/resume + 31 020 894 6247 + 1 415 287 3547
participants (3)
-
Craig Latta -
Eliot Miranda -
YossiDM