Changeset 2854 for proto/gml2svg


Ignore:
Timestamp:
Jan 27, 2013, 9:56:46 PM (7 years ago)
Author:
ksherdy
Message:

Modified perf.sh script to avoid per run compilation and the cc_analyzer for long runs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/gml2svg/C/xerces/perf.sh

    r2840 r2854  
    1010#
    1111#
    12 GML_DIR="../../data/layer/gml-10"
    13 PAPI_EVENTS_DAT="papi_events.dat"
     12GML_DIR="../../data/layer/gml-1"
     13PAPI_EVENTS_DAT="papi_events.data"
    1414NO_ARGS=0
    1515E_OPTERROR=85
     
    7878# sanity checks
    7979
     80if ( [ -e .cc ] ) ; then
     81        rm -Rf .cc
     82fi
     83
    8084if ( ! [ -f $CC_ANALYZER ] ) ; then
    8185                echo "Error: cc_analyzer not found."   
     
    9397fi
    9498
     99# back up one run
     100if ( [ -e $CC_DIR ] ) ; then
     101        mv -f $CC_DIR $CC_DIR.bak       
     102fi
     103
     104if ( [ -e $CC_RSLT ] ) ; then
     105        mv -f $CC_RSLT $CC_RSLT.bak
     106fi
     107
     108if ( [ -e $CC_CSV_RSLT ] ) ; then
     109        mv -f $CC_CSV_RSLT $CC_CSV_RSLT.bak
     110fi
     111
    95112for papi_event in $PAPI_EVENTS;
    96113do
    97114        #compile
    98         CC_EVENT=$papi_event
    99         export CC_EVENT
     115        #CC_EVENT=$papi_event
     116        #export CC_EVENT
    100117
    101118        #execute
    102         make $APP_TARGET
    103         export LD_LIBRARY_PATH=$LIB_PATH #":$LD_LIBRARY_PATH"
     119        #make $APP_TARGET
     120        #export LD_LIBRARY_PATH=$LIB_PATH #":$LD_LIBRARY_PATH"
    104121        ./$APP $GML_DIR $SVG_DIR $papi_event
    105122       
    106123done
    107124
    108 #analyze
     125#generate report files
     126
     127#code clocker
    109128rm -Rf $CC_RSLT
    110 touch $CC_RSLT
    111 rm -Rf $CC_DIR
    112 mv -f ".cc" $CC_DIR # update dir name to stop a clobbering
     129#touch $CC_RSLT
     130#rm -Rf $CC_DIR
     131mv -f ".cc" $CC_DIR # move .cc directory into the CC_DIR
    113132CC_FILES=`ls $CC_DIR`
    114133
    115 for cc_file in $CC_FILES;       
    116 do
    117                 $CC_ANALYZER $CC_DIR/$cc_file -r -c -p >> $CC_RSLT
    118 done
     134#for cc_file in $CC_FILES;     
     135#do
     136#               $CC_ANALYZER $CC_DIR/$cc_file -r -c -p >> $CC_RSLT
     137#done
    119138
    120 echo -n "Result file: "
    121 echo $CC_RSLT
     139#echo -n "Result file: "
     140#echo $CC_RSLT
    122141
     142#csv
    123143rm -Rf $CC_CSV_RSLT
    124144touch $CC_CSV_RSLT
    125 echo "PAPI Event Code, Average per byte" >> $CC_CSV_RSLT
     145echo "PAPI Event Code, Value, Bytes" >> $CC_CSV_RSLT
    126146for file in `find $CC_DIR -name "*.csv" | sort`
    127147do
Note: See TracChangeset for help on using the changeset viewer.