title: cProfile streamline -- python
body: <p>I'm trying to profile a python script with several functions in it. Here is the code I'm using to profile the program:</p>
  
  <pre><code>cProfile.run('loadBMPImage(sys.argv[1])')
  cProfile.run('parseFilterCmdArgs(sys.argv)')
  cProfile.run('doConvolution( img_data, filter_width, filter_weights, img_height, img_width )')
  cProfile.run('saveBMPImage(out_img_data, header_data, sys.argv[2], img_height, img_width )')
  </code></pre>
  
  <p>So I see 4 profile reports in standard out.
  However, I was wondering if there was a way to do this more smoothly, and show ONE profile report for all 4 of these functions? Better yet, is there a way to profile the entire program with one call of <code>cProfile</code>? Thanks!</p>