Re: memoru usage of process

2005-09-28 Thread MrJean1
What do you mean by 'Python way' and 'not related to Python'? How is parsing the output of 'ps' different from the method used in recipe 286222? /Jean Brouwers -- http://mail.python.org/mailman/listinfo/python-list

Re: memoru usage of process

2005-09-28 Thread Jacek Popławski
MrJean1 wrote: > Yes, I have seen it in archive, but I was searching for Python way, and it's not Python related at all (it is just reading system file), and won't work on QNX. -- http://mail.python.org/mailman/listinfo/python-l

Re: memoru usage of process

2005-09-27 Thread MrJean1
On Linux, this may work for you /Jean Brouwers Jacek Poplawski wrote: > I need to know how much memory uses child process (after > subprocess.Popen), so I want function: > > get_memory_usage(pid) > > I found two ways: > > - cal

memoru usage of process

2005-09-27 Thread Jacek Popławski
I need to know how much memory uses child process (after subprocess.Popen), so I want function: get_memory_usage(pid) I found two ways: - call "ps" and analyze its output - this is not portable (different output on Linux, Cygwin and QNX) - use resource.getrusage - but it works for self/childr