On Thu, Jul 19, 2007 at 04:35:56AM -0500, Will Maier wrote: > On Thu, Jul 19, 2007 at 09:52:36AM +0100, Robert Rawlins - Think Blue wrote: > > I have a scheduled event which occurs every minute, i just need a > > code solution to give me the systems current memory consumptions > > details, is there perhaps something in the os module? > > I don't know of anything in the standard library that does this sort > of thing. Instead, you'll probably need to rely on your system's > tools. sysstat is available on Linux and provides the sar(1) command > for examining logs of various system attributes. The tool to use > depends on the system you're running.
The other obvious approach would be to profile[0] your Python application. [0] http://docs.python.org/lib/profile.html -- [Will [EMAIL PROTECTED]|http://www.lfod.us/] -- http://mail.python.org/mailman/listinfo/python-list