cProfile Viewing To use cProfile to capture your application's profile data, either using the command-line, like so: $ python -m cProfile -o <outputfilename> <script-name> <options> Or in code, like so: import c