Changeset 1090


Ignore:
Timestamp:
10/16/14 15:08:05 (10 years ago)
Author:
sdipsl
Message:

Minimize instrumentation content message size
Use meaningful attribute name for instrumentation
and cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r1087 r1090  
    235235  done 
    236236  # 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} 
    238238 
    239239  # 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.txt 
     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.txt 
    241241 
    242242  # Send the message 
     
    252252    IGCM_debug_Print 2 "IGCM_debug_Push/PopStack/ActivateBigBro : command sendAMQPMsg failed error code ${status}" 
    253253    echo sendAMQPMsg -h localhost -p 5672 -b "${Body}" 
    254     exit 
     254    exit 1 
    255255  fi 
    256256} 
     
    752752 
    753753  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 
    757755 
    758756  diff_ms=$(( $end_ms - $start_ms )) 
     
    776774 
    777775  if [ -d $dest ] ; then 
    778     dirOut=$( readlink -f ${dest} ) 
     776    dirTo=$( readlink -f ${dest} ) 
    779777  else 
    780     dirOut=$( readlink -f $( dirname ${dest} ) ) 
     778    dirTo=$( readlink -f $( dirname ${dest} ) ) 
    781779  fi 
    782780 
    783781  if [ -d $source ] ; then 
    784     dirSource=$( readlink -f ${source} ) 
     782    dirFrom=$( readlink -f ${source} ) 
    785783  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}" 
    792792 
    793793  echo ${instrumentationContent} 
Note: See TracChangeset for help on using the changeset viewer.