<div dir="ltr"><div><div><div><div><div>Hi Sandeep,<br><br><br>On Wed, Mar 19, 2014 at 9:06 AM, manty kuma <<a href="mailto:mantykuma@gmail.com">mantykuma@gmail.com</a>> wrote:<br>><br>> Thanks david. So my next question was that is it enabled in linux kernel that android uses. How do i confirm it?<br>
<br></div>Perhaps put a sleep(30) right at the start of main()<br><br></div>Run your program.<br></div>Look at /proc/PID/status<br><br>Then when the sleep is finished and your program continues executing, look at /proc/PID/status again<br>
<br></div>To do the test properly you'd probably need to generate some code which has lots of no-ops (maybe a megabytes worth), and look at /proc/PID/status before and after executing that function.<br><br></div>I think that as more code gets paged in you'll see VmRSS increase. IIRC VmRSS also includes your heap and stack.<br>
<div><div><div><div><div><br>--<br>Dave Hylands<br>Shuswap, BC, Canada<br><a href="http://www.davehylands.com">http://www.davehylands.com</a></div></div></div></div></div></div>