tracing on start option

Change-Id: Ie7a85da4fd865fbabd6b38ac1d12977ff2684114


[ROCm/rocprofiler commit: b0d56ba0eb]
This commit is contained in:
Evgeny
2019-12-11 14:41:51 -06:00
parent 52bf544e06
commit ff73eace8f
+5
View File
@@ -179,6 +179,7 @@ usage() {
echo " </parameters>"
echo " </trace>"
echo ""
echo " --trace-start <on|off> - to enable tracing on start [on]"
echo " --trace-period <dealy:length:rate> - to enable trace with initial delay, with periodic sample length and rate"
echo " Supported time formats: <number(m|s|ms|us)>"
echo " --obj-tracking <on|off> - to turn on/off kernels code objects tracking [off]"
@@ -393,6 +394,10 @@ while [ 1 ] ; do
export ROCP_TIMESTAMP_ON=1
GEN_STATS=1
HIP_TRACE=1
elif [ "$1" = "--trace-start" ] ; then
if [ "$2" = "off" ] ; then
export ROCP_CTRL_RATE="-1"
fi
elif [ "$1" = "--trace-period" ] ; then
period_expr="^\([^:]*\):\([^:]*\):\([^:]*\)$"
period_ck=`echo "$2" | sed -n "s/"${period_expr}"/ok/p"`