Changeset 1090 for trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh
- Timestamp:
- 10/16/14 15:08:05 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh
r1087 r1090 235 235 done 236 236 # Log to stack file using human readable format 237 echo sendAMQPMsg -h localhost -p 5672 ${additionnalOption} -b "${Body}">> ${StackFileLocation}/${StackFileName}237 echo "${Body}" >> ${StackFileLocation}/${StackFileName} 238 238 239 239 # Log separately encoded AMQP message command for reuse in a mock up 240 echo sendAMQPMsg -h localhost -p 5672 ${additionnalOption} -b ${encodedBody} >> /tmp/send.AMQP.${config_UserChoices_JobName}.${config_UserChoices_ExperimentName}.${config_UserChoices_SpaceName}.${config_UserChoices_TagName}.${CumulPeriod}.history.txt240 #echo sendAMQPMsg -h localhost -p 5672 ${additionnalOption} -b ${encodedBody} >> /tmp/send.AMQP.${config_UserChoices_JobName}.${config_UserChoices_ExperimentName}.${config_UserChoices_SpaceName}.${config_UserChoices_TagName}.${CumulPeriod}.history.txt 241 241 242 242 # Send the message … … 252 252 IGCM_debug_Print 2 "IGCM_debug_Push/PopStack/ActivateBigBro : command sendAMQPMsg failed error code ${status}" 253 253 echo sendAMQPMsg -h localhost -p 5672 -b "${Body}" 254 exit 254 exit 1 255 255 fi 256 256 } … … 752 752 753 753 typeset diff_ms entitySizeKo entitySizeMo flux_Ko_ms flux_Ko_s flux_Mo_s 754 typeset name dirOut dirSource 755 756 name="doNotKnow" 754 typeset dirFrom dirTo 757 755 758 756 diff_ms=$(( $end_ms - $start_ms )) … … 776 774 777 775 if [ -d $dest ] ; then 778 dir Out=$( readlink -f ${dest} )776 dirTo=$( readlink -f ${dest} ) 779 777 else 780 dir Out=$( readlink -f $( dirname ${dest} ) )778 dirTo=$( readlink -f $( dirname ${dest} ) ) 781 779 fi 782 780 783 781 if [ -d $source ] ; then 784 dir Source=$( readlink -f ${source} )782 dirFrom=$( readlink -f ${source} ) 785 783 else 786 dirSource=$( readlink -f $( dirname ${source} ) ) 787 fi 788 789 instrumentationContent=$( echo "\"act\":\"${actionType}\",\"sz\":\"${entitySizeMo}\",\"ms\":\"${diff_ms}\",\"fx(ko)\":\"${flux_Ko_s}\",\"fx(mo)\":\"${flux_Mo_s}\",\"nm\":\"${name}\",\"dirSource\":\"${dirSource}\",\"dirOut\":\"${dirOut}\"" ) 790 791 #echo "==>act:${actionType}|sz:${entitySizeMo}|ms:${diff_ms}|fx(ko):${flux_Ko_s}|fx(mo):${flux_Mo_s}|nm:${name}|dirSource:${dirSource}|dirOut:${dirOut}" 784 dirFrom=$( readlink -f $( dirname ${source} ) ) 785 fi 786 787 #instrumentationContent=$( echo "\"act\":\"${actionType}\",\"sz\":\"${entitySizeMo}\",\"ms\":\"${diff_ms}\",\"fx(ko)\":\"${flux_Ko_s}\",\"fx(mo)\":\"${flux_Mo_s}\",\"nm\":\"${name}\",\"dirSource\":\"${dirFrom}\",\"dirOut\":\"${dirTo}\"" ) 788 789 instrumentationContent=$( echo "\"actionName\":\"${actionType}\",\"size\":\"${entitySizeMo}\",\"duration\":\"${diff_ms}\",\"dirFrom\":\"${dirFrom}\",\"dirTo\":\"${dirTo}\"" ) 790 791 #echo "==>act:${actionType}|sz:${entitySizeMo}|ms:${diff_ms}|fx(ko):${flux_Ko_s}|fx(mo):${flux_Mo_s}|nm:${name}|dirSource:${dirFrom}|dirOut:${dirTo}" 792 792 793 793 echo ${instrumentationContent}
Note: See TracChangeset
for help on using the changeset viewer.