SWDEV-474739: Added flag to optionally remove serialization for counter collection mode

Change-Id: I2e91fd51287fe923ec6a97b491f84f0dd9d51f62
This commit is contained in:
Ian Trowbridge
2024-08-06 17:26:56 -05:00
orang tua c4adefccde
melakukan cd2ff0250e
3 mengubah file dengan 43 tambahan dan 14 penghapusan
+5
Melihat File
@@ -60,6 +60,8 @@ usage() {
echo -e "\t#${GREY} usage e.g: rocprofv2 --hip-trace -fi 1000 <executable>${RESET}\n"
echo -e "${GREEN}-tp | --trace-period ${RESET} Specifies a trace period in milliseconds, with format \"-tp <DELAY>:<ACTIVE_TIME>:<LOOP_RESET_TIME>\"."
echo -e "\t#${GREY} usage e.g: rocprofv2 --hip-trace -tp 1000:2000:4000 <executable>${RESET}\n"
echo -e "${GREEN}-ns | --no-serialization ${RESET} For disabling serilization when running in counter-collection mode\"."
echo -e "\t#${GREY} usage e.g: rocprofv2 -i pmc.txt -ns${RESET}\n"
exit 1
}
@@ -140,6 +142,9 @@ while [ 1 ]; do
elif [ "$1" == "--hip-api" ]; then
export ROCPROFILER_HIP_API_TRACE=1
shift
elif [[ "$1" == "-ns" || "$1" == "--no-serialization" ]]; then
export ROCPROFILER_NO_SERIALIZATION=1
shift
elif [[ "$1" == "--hip-activity" || "$1" == "--hip-trace" ]]; then
export ROCPROFILER_HIP_API_TRACE=1
export ROCPROFILER_HIP_ACTIVITY_TRACE=1