title: How can I profile memory of multithread program in Python?
body: <p>Is there a way to profile memory of a multithread program in Python? </p>
  
  <p>For CPU profiling, I am using the cProfile to create seperate profiler stats for each thread and later combine them. However, I couldn't find a way to do this with memory profilers. I am using heapy.</p>
  
  <p>Is there a way to combine stats in heapy like the cProfile? Or what other memory profilers would you suggest that is more suitable for this task.</p>
  
  <p>A related question was asked for profiling CPU usage over multi-thread program: <a href="https://stackoverflow.com/questions/653419/how-can-i-profile-a-multithread-program-in-python">How can I profile a multithread program in Python?</a></p>
  
  <p>Also another question regarding the memory profiler: <a href="https://stackoverflow.com/questions/110259/python-memory-profiler">Python memory profiler</a></p>