Is it Possible to Save the Output of pstats?

Is it possible to save the output of pstats? Any format would be OK.

Try the command-line text-stats utility. You can redirect the output to a file.