title: iOS memory usage increasing, can't find the culprit
body: <p>I'm attempting to download a large number of images using AFNetworking 2.5 and stream them to disk. According to the memory monitor in Xcode, this is causing unbounded memory growth (and eventually memory warnings and force quits) - but profiling the memory usage using the allocations instrument shows the memory usage to be stable.</p>
  
  <p>I'd like to think Xcode is just wrong here, but then why would my app be getting killed by iOS?</p>
  
  <p>Instruments shows this - the peaks are Core Data queries, then the rest is the images downloading - peaks at about 9.5MB, the rest sits at about 8.5MB</p>
  
  <p><img src="https://i.stack.imgur.com/zLweZ.png" alt="Instruments"></p>
  
  <p>I've also tried Heapshot Analysis - which shows a tiny bit of growth but nowhere near the amount reported by Xcode</p>
  
  <p><img src="https://i.stack.imgur.com/RESon.png" alt="Heapshot Analysis"></p>
  
  <p>Xcode's memory monitor shows this - growing by multiple MB per iteration.</p>
  
  <p><img src="https://i.stack.imgur.com/Ay80h.png" alt="Xcode Memory Usage"></p>
  
  <p>Is there any way to get Instruments to show me whatever Xcode is seeing? Or is there a better instrument to use to find out where all this memory is going?</p>
  
  <p>Thanks!</p>