title: Checking Memory Usage While Application is Running
body: <p>While running my app, I sometimes get Memory Warning. It doesn't always happen in same place in the code, but I suspect it has something to do with memory allocated from outside of my app; i.e. if there are many applications running on the iPhone in the background I will get the memory warning earlier, and if there are no applications running in the background I will not get the warning at all.</p>
  
  <ol>
  <li>Is there a method I can use to check how much memory my application is using at a certain point?</li>
  <li>Is there a method I can use to check how much memory the machine (iPhone/iPad) is using at a certain point? maybe even to check how much memory is still available to use?</li>
  <li>In general, maybe somebody knows where I can find data about the memory limitations for the different iOS based machines?</li>
  </ol>
  
  <p>Thanks,
  Ohad</p>