Skip to content

Commit 02663cb

Browse files
author
Jake Schmidt
committed
add default backend
1 parent a24ad12 commit 02663cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mprof.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ def run_action():
215215
(where <YYYYMMDDhhmmss> is the date-time of the program start).
216216
This file contains the process memory consumption, in Mb (one value per line).""")
217217
parser.add_argument("--backend", dest="backend", choices=["psutil", "psutil_pss", "psutil_uss", "posix", "tracemalloc"],
218-
help="Current supported backends: 'psutil', 'psutil_pss', 'psutil_uss', 'posix', 'tracemalloc'")
218+
default="psutil",
219+
help="Current supported backends: 'psutil', 'psutil_pss', 'psutil_uss', 'posix', 'tracemalloc'. Defaults to 'psutil'.")
219220
parser.add_argument("program", nargs=REMAINDER,
220221
help='Option 1: "<EXECUTABLE> <ARG1> <ARG2>..." - profile executable\n'
221222
'Option 2: "<PYTHON_SCRIPT> <ARG1> <ARG2>..." - profile python script\n'

0 commit comments

Comments
 (0)