We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8167188 commit 069cf56Copy full SHA for 069cf56
eb
@@ -122,7 +122,16 @@ then
122
export FANCYLOGGER_IGNORE_MPI4PY=1
123
fi
124
125
+# If a profile filename is given, run easybuild via cProfile
126
+if [ -z "${EB_PROFILE}" ]
127
+then
128
+ EB_PROFILE_FLAGS=""
129
+else
130
+ verbose "Writing profile output to: \"${EB_PROFILE}\""
131
+ EB_PROFILE_FLAGS="-m cProfile -o \"${EB_PROFILE}\""
132
+fi
133
+
134
export EB_SCRIPT_PATH="${0}"
135
-verbose "${PYTHON} -m ${EASYBUILD_MAIN} ${*}"
-exec "${PYTHON}" -m "${EASYBUILD_MAIN}" "${@}"
136
+verbose "${PYTHON} ${EB_PROFILE_FLAGS} -m ${EASYBUILD_MAIN} ${*}"
137
+exec "${PYTHON}" ${EB_PROFILE_FLAGS} -m "${EASYBUILD_MAIN}" "${@}"
0 commit comments