I am using pprofile to do line profiling on a python script. However, since pprofile also profiles all the modules called by my script, the output is extremely long and gets cut off in the command line. I am only interested in the output of profiling my script, which is at the beginning of the output and thus gets cut off. Is there a way to either:
- Tell pprofile to only output the results of profiling my script, and none of the other modules, or
- Save the pprofile output to a file so that I can see the beginning of it?