When running kernprof: kernprof -l script_to_profile.py The output is stored in a binary file, which can be read in the terminal/command line. Is there a way to output the results to a text file? This seems like useful functionality to have, but can't find it in the documentation or in other posts. Continue reading...