New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 1564 for trunk/NVTK/INSTALL/JOBS/MEM_size_sx8brodie.ksh – NEMO

Ignore:
Timestamp:
2009-07-31T14:31:31+02:00 (15 years ago)
Author:
ctlod
Message:

NVTK: improve it with new functionnality mainly for the developpers,see ticket: #506, #240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NVTK/INSTALL/JOBS/MEM_size_sx8brodie.ksh

    r1301 r1564  
    8080evaltag=$? 
    8181 
    82 zfilecs="mon/LONG/${zexp}/memory_size.txt" ;  zfilers='mon/LONG/REF/memory_size.txt' 
    83 zfilecm="mon/LONG/${zexp}/mon${zconf}_err"  ;  zfilerm="mon/LONG/REF/mon${zconf}_err" 
     82zfilecs="mon/LONG/${zexp}/memory_size.txt" ;  zfilers="mon/LONG/${ztag}/memory_size.txt" 
     83zfilecm="mon/LONG/${zexp}/mon${zconf}_err"  ;  zfilerm="mon/LONG/${ztag}/mon${zconf}_err" 
    8484 
    8585# If reference version files exist 
     
    8888    Mo_stack_ms=$( (awk '/Stack/ {print $NF/(1024*1024) }' ${zfilers} ) ) 
    8989    Mo_stati_ms=$( (awk '/Stati/ {print $NF/(1024*1024) }' ${zfilers} ) ) 
    90     if [ ${zxcm} == 0 ] ; then Mo_max_used=$( (awk '/Memory/ {print $NF}' ${zfilerm} ) ) ; fi 
     90    if [ ${zxcm} == 0 ] ; then Mo_max_used=$( (awk '/Memory Size/ {print $NF}' ${zfilerm} ) ) ; fi 
    9191 
    9292    # Print: Variable long name | current version values | reference version values | variations 
     
    9696    awk ' /Stack/ { val=$NF/(1024*1024) } END {printf("%-9s %-16s %8.1f      |   %8.1f     |    %5.1f %\n ", " ", "Stack     (Mo) :", val, inck, ((val-inck)/inck)*100 ) }' inck=${Mo_stack_ms} ${zfilecs} >> ${zout} 
    9797    awk ' /Stati/ { val=$NF/(1024*1024) } END {printf("%-8s %-16s %8.1f      |   %8.1f     |    %5.1f %\n ", " ", "Static    (Mo) :", val, inti, ((val-inti)/inti)*100 ) }' inti=${Mo_stati_ms} ${zfilecs} >> ${zout} 
    98     if [ ${zxcm} == 0 ] ; then awk ' /Memory/ { val=$NF } END {printf("%-8s %-16s %8.1f      |   %8.1f     |    %5.1f %\n ", " ", "Max. used (Mo) :", val, inus, ((val-inus)/inus)*100 ) }' inus=${Mo_max_used} ${zfilecm} >> ${zout} ; fi 
     98    if [ ${zxcm} == 0 ] ; then awk ' /Memory Size/ { val=$NF } END {printf("%-8s %-16s %8.1f      |   %8.1f     |    %5.1f %\n ", " ", "Max. used (Mo) :", val, inus, ((val-inus)/inus)*100 ) }' inus=${Mo_max_used} ${zfilecm} >> ${zout} ; fi 
    9999else 
    100100    # Print: Variable long name | current version values 
Note: See TracChangeset for help on using the changeset viewer.