When I call resource.getrus age on Linux, I don't get any memory stats:
Python 2.2.2 (#1, Jan 30 2003, 21:26:22)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.[color=blue][color=green][color=darkred]
>>> from resource import getrusage,RUSAG E_SELF
>>> print getrusage(RUSAG E_SELF)[/color][/color][/color]
(0.019531, 0.0078119999999 999995, 0, 0, 0, 0, 178, 387, 0, 0, 0, 0, 0, 0, 0, 0)[color=blue][color=green][color=darkred]
>>>[/color][/color][/color]
On AIX, I get the correct numbers.
What is the goal? I need to find a memory leak in an extension module.
For starters, I was going to find extension method calls that produce
unexpected memory use (and I found some on AIX - but our 12 year old AIX
system is *so* slow). Suggestions are welcome.
Python 2.2.2 (#1, Jan 30 2003, 21:26:22)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.[color=blue][color=green][color=darkred]
>>> from resource import getrusage,RUSAG E_SELF
>>> print getrusage(RUSAG E_SELF)[/color][/color][/color]
(0.019531, 0.0078119999999 999995, 0, 0, 0, 0, 178, 387, 0, 0, 0, 0, 0, 0, 0, 0)[color=blue][color=green][color=darkred]
>>>[/color][/color][/color]
On AIX, I get the correct numbers.
What is the goal? I need to find a memory leak in an extension module.
For starters, I was going to find extension method calls that produce
unexpected memory use (and I found some on AIX - but our 12 year old AIX
system is *so* slow). Suggestions are welcome.
Comment