Skip to content
Snippets Groups Projects
Commit 520103aa authored by Andreas Schenk's avatar Andreas Schenk
Browse files

added switch for profiling support to ost_config

parent 30dd54c9
Branches
Tags 2.7.0
No related merge requests found
......@@ -50,6 +50,18 @@ if [ -n "$DNG_ATTACH_VALGRIND" ]; then
pyexec="`which valgrind`#--leak-check=full#$pyexec"
fi
if [ -n "$DNG_PROFILE" ]; then
if [[ "$DNG_PROFILE" == "yep" ]]; then
echo "Profiling activated using yep"
pyexec="$pyexec#-m#yep#-v#--"
elif [[ "$DNG_PROFILE" == "cProfile" ]]; then
echo "Profiling activated using cProfile"
pyexec="$pyexec#-m#cProfile#-s#cumulative#--"
else
echo "Profiling deactivated due to unkown profiler"
fi
fi
set -o noglob
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment