arvindm95 / unladen-swallow

Automatically exported from code.google.com/p/unladen-swallow
Other
0 stars 0 forks source link

Make perf.py --track_memory work on other platforms #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, perf.py's --track_memory option works by reading Linux 2.6 smaps
files from /proc/. This obviously doesn't work on non-Linux platforms, or
even Linux platforms pre-2.6.16.

Darwin is the most important of the currently-unsupported platforms.
/usr/bin/time -l (lowercase ell) on Darwin will provide the maximum rss for
the process.

Original issue reported on code.google.com by collinw on 27 May 2009 at 2:52

GoogleCodeExporter commented 8 years ago
As of r661, --track_memory now works on Windows. Darwin support is still 
lacking.

Original comment by collinw on 21 Jun 2009 at 2:52

GoogleCodeExporter commented 8 years ago
I experimentally implemented the feature to show max RSS on Darwin platform 
using PSI
(http://bitbucket.org/chrismiles/psi/), but it may not be a good idea to depend 
on
another package, is it? 

Original comment by ksato9...@gmail.com on 5 Jul 2009 at 5:16

GoogleCodeExporter commented 8 years ago

Original comment by collinw on 21 Feb 2010 at 6:10