Changeset 915


Ignore:
Timestamp:
08/12/13 16:01:45 (11 years ago)
Author:
sdipsl
Message:

call IGCM_debug_PrintInfosActions only for instrumented functions

File:
1 edited

Legend:

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

    r914 r915  
    5151# libIGCM_CurrentTag 
    5252# Current libIGCM tag, check compatibilty with *.card 
    53 typeset -r libIGCM_CurrentTag="2.0" 
     53typeset -r libIGCM_CurrentTag="1.0" 
    5454 
    5555#================================================== 
     
    226226  if ( $DEBUG_debug ) ; then 
    227227    typeset decal command arguments startTime_ms endTime_ms 
    228     typeset fileList source dest 
     228    typeset instrumentation fileList source dest 
    229229 
    230230    # INTRODUCE SIMPLE ERROR GENERATOR TO TEST SUPERVISOR 
     
    272272    #  4. How long it took 
    273273 
     274    instrumentation=false 
     275 
    274276    case ${command} in 
    275277    # Copy from archive machine or from buffer 
    276278    IGCM_sys_Get|IGCM_sys_GetBuffer) 
     279      instrumentation=true 
    277280      if [ ${#arguments[*]} -eq 2 ] ; then 
    278281        source=${arguments[0]} 
     
    302305    # Copy from compute node 
    303306    IGCM_sys_Get_Master|IGCM_sys_Get_Dir) 
     307      instrumentation=true 
    304308      if [ ${#arguments[*]} -eq 2 ] ; then 
    305309        source=${arguments[0]} 
     
    312316    # Rebuild command 
    313317    IGCM_sys_rebuild|IGCM_sys_rebuild_station) 
     318      instrumentation=true 
    314319      # All but the first 
    315320      fileList=${arguments[*]:1:${#arguments[*]}-1} 
     
    324329 
    325330    # Print information related to instrumentation 
    326     IGCM_debug_PrintInfosActions ${command} ${entitySize} ${startTime_ms} ${endTime_ms} ${dest} ${source} 
     331    ( ${instrumentation} ) && IGCM_debug_PrintInfosActions ${command} ${entitySize} ${startTime_ms} ${endTime_ms} ${dest} ${source} 
    327332 
    328333    # Only cosmetics : stack file 
Note: See TracChangeset for help on using the changeset viewer.