title: Profiling in Python: Who called the function?
body: <p>I'm profiling in Python using <code>cProfile</code>. I found a function that takes a lot of CPU time. How do I find out which function is calling this heavy function the most?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I'll settle for a workaround: Can I write a Python line inside that heavy function that will print the name of the function that called it?</p>