Windows process info from Squeak

David T. Lewis lewis at mail.msen.com
Tue Jan 31 12:54:19 UTC 2006


On Tue, Jan 31, 2006 at 02:34:25PM +0200, Valdas Bucinskas wrote:
> Hello
> 
> Is there a way to get information about Windows XP processes from Squeak?
> Smth like how much RAM is the process using? What is PID of the process? And
> so on.
> Any hints or workaraunds are very much welcome.

See OSProcess and OSProcessPlugin on Squeak Map.

There is an old version of the plugin (Win32OSProcessPlugin.dll)
included in the OSProcess distribution, but you'll need to build
your own from source with VMMaker if you want the latest. The old
one will give you pid, and the more recent OSPP also gives the
environment, the current working directory, main thread ID, etc.
For the other things you might be interested in (memory use),
you might want to just use one of the existing OSPP primitives
as a template and put in whatever you want.

One word of warning, the latest SVN sources for Windows VM have
a security related "feature" that will break some of the OSPP
file-related functions. Let me know if this is a problem for
you and I'll try to come up with some sort of workaround. It's
not something I'm working on at the moment though.

Dave
 



More information about the Squeak-dev mailing list