how to measure memory usage on Mac OSX ?
7stud
bbxx789_05ss at yahoo.com
Tue Feb 26 06:02:43 EST 2008
On Feb 26, 3:43 am, "masayuki.takagi" <kamona... at gmail.com> wrote:
> hi all,
>
> i want to measure memory usage of my python process on Mac OSX.
>
> i tired resource module, but it doesn't work on OSX.
>
> how can i get it ?
>
> thnx.
>
> -- masayuki takagi
#mac osx 10.4.7
import resource
print resource.getrusage(resource.RUSAGE_SELF)
--output:--
(0.009417, 0.020122999999999999, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0,
0, 0)
More information about the Python-list
mailing list