title: Amount of memory used by each thread
body: <p>I am developing an app that is crashing due to an excess of memory usage. I would like to know the amount of memory that is being used by each active thread so that I can decide which allocated or drawn in screen elements release or remove from view. Is there a way to obtain it?</p>
  
  <p>I have tried using mach.h library but with <code>mach_task_self()</code> I can only access the memory used by the whole application.</p>
  
  <p>Thanks in advance</p>