Change-Id: I7c51e85f8a8e6e5bae67abf74716a658cc533a6a


[ROCm/rocprofiler commit: 68c9f32d6e]
Этот коммит содержится в:
Evgeny
2020-06-15 01:13:19 -05:00
родитель 7289c3619e
Коммит 669dcf4f05
+12 -9
Просмотреть файл
@@ -281,15 +281,18 @@ run() {
}
merge_output() {
output_dir=$(echo "$1" | sed "s/\/[^\/]*$//")
for file_name in `ls $output_dir` ; do
output_name=$(echo $file_name | sed -n "/\.txt$/ s/^[0-9]*_//p")
if [ -n "$output_name" ] ; then
trace_file=$output_dir/$file_name
output_file=$output_dir/$output_name
touch $output_file
cat $trace_file >> $output_file
fi
while [ -n "$1" ] ; do
output_dir=$(echo "$1" | sed "s/\/[^\/]*$//")
for file_name in `ls $output_dir` ; do
output_name=$(echo $file_name | sed -n "/\.txt$/ s/^[0-9]*_//p")
if [ -n "$output_name" ] ; then
trace_file=$output_dir/$file_name
output_file=$output_dir/$output_name
touch $output_file
cat $trace_file >> $output_file
fi
done
shift
done
}