Re: [Pharo-project] Introspection on saved image file
not right now. you could open an the changes file with from another image or use rst to query objects in an image from another one. Stef On Nov 4, 2010, at 9:38 PM, YossiDM 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?
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 suspected as much. Any plans to implement anything like this? We are currently using the .changes file, but we will perhaps instead take a custom snap shot of the data into a specific data structure and persist it before we turn off the image. As you can imagine, getting this information is useful in all kinds of project management and build tools. I'd rather get it dynamically of course. Imagine in Hudson for instance if you could take a look at what was inside the image without downloading it. Maybe not useful to everyone, but in our context it certainly would be, especially for dashboards and metrics on code. We're also doing this with mcz files, but sometimes we want the last state of the image which may not have included proper packaging on some of the code. I'll be sure to share any of the tools we create, but it's still awhile off since there's a lot of work we need to do. -- View this message in context: http://forum.world.st/Introspection-on-saved-image-file-tp3027736p3027806.ht... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
participants (2)
-
Stéphane Ducasse -
YossiDM