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

Change-Id: I2e91fd51287fe923ec6a97b491f84f0dd9d51f62


[ROCm/rocprofiler commit: cd2ff0250e]
Этот коммит содержится в:
Ian Trowbridge
2024-08-06 17:26:56 -05:00
родитель 6defbd0f2e
Коммит f731ae7593
3 изменённых файлов: 43 добавлений и 14 удалений
+5
Просмотреть файл
@@ -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