Skip to content

Commit 3eca6b8

Browse files
NanoNablabertwesarg
andcommitted
Apply suggestions from code review
Co-authored-by: Bert Wesarg <bert.wesarg@tu-dresden.de>
1 parent 3784d04 commit 3eca6b8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

scorep/__main__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def print_help():
1616
print("""
1717
Usage: python -m scorep [options] [--] your_program.py [args]
1818
19-
Score-P Python instrumentation wrapper. The following options control how the program is instrumented and executed:
19+
Score-P Python instrumentation wrapper. The following options control how the program is instrumented and executed. Any unknown option are passed directly to 'scorep-config'.
2020
2121
--help Show this help message and exit.
2222
--mpi Enable MPI instrumentation (equivalent to --mpp=mpi).
@@ -25,16 +25,18 @@ def print_help():
2525
--nopython Disable instrumentation of Python code.
2626
Instrumentation can still be enabled later from within the application's source code.
2727
--noinstrumenter Same as --nopython.
28-
--instrumenter-type=<t> Specify custom instrumenter type (e.g., cProfile).
29-
--instrumenter-file=<f> Path to a Python script that is executed before the application.
28+
--instrumenter-type=<type>
29+
Specify custom instrumenter type (e.g., cProfile).
30+
--instrumenter-file=<file>
31+
Path to a Python script that is executed before the application.
3032
Allows instrumentation of specific modules and functions without modifying their source code.
3133
-- Stop parsing Score-P options; pass following args to your script.
3234
3335
Other options starting with '-' are passed directly to 'scorep-config'.
3436
To view all available Score-P configuration options, run: scorep-config --help
3537
3638
Example:
37-
scorep --mpi --thread=pthread -- your_script.py --arg1 --arg2
39+
scorep --mpi --thread=pthread -- ./your_script.py --arg1 --arg2
3840
3941
Note:
4042
If using --noinstrumenter, Score-P will not trace Python code, but it may still collect MPI or threading events

0 commit comments

Comments
 (0)