The ``run`` subcommand ====================== The ``run`` subcommand is used to launch a new Python process and track the memory allocations it performs while it runs. Basic tracking -------------- The general form of the ``run`` subcommand is one of: .. code:: shell memray run [options] file.py [args] memray run [options] -m module [args] Like the Python interpreter itself, the ``run`` subcommand can take a path to a Python file to run, or the name of a Python module to run if you use the ``-m`` flag. While it runs, memory allocations and deallocations throughout the program are tracked. By default they are saved into a file with the following pattern: ``memray-