title: Profiling only user defined functions pstats
body: <p>I'm trying to use Stats() from the pstats module as such:</p>
  
  <pre><code>    p = Profile()
      p.runcall(wrangle_file,input_filename="test.csv",output_file="solution.csv",metrics=True)
      stats = Stats(p)
      stats.strip_dirs()
      stats.sort_stats('cumulative')
      stats.print_stats()
  </code></pre>
  
  <p>However, when I do print_stats, I'm getting the calls to library functions as well. Is there a way I can filter these to just print the calls to my functions?</p>