Changeset 2840 for proto/gml2svg


Ignore:
Timestamp:
Jan 23, 2013, 2:03:33 AM (7 years ago)
Author:
ksherdy
Message:

Updated perf scripts to support automation of gml2svg perf tests.

Location:
proto/gml2svg/C/xerces
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • proto/gml2svg/C/xerces/Makefile

    r2826 r2840  
    2828XERCES_3_1_1_I=$(XERCES_3_1_1_BASE)/
    2929     
    30 XERCES_ICX_BASE=/home/ken/SW/icxml/xerces/src
     30XERCES_ICX_BASE=/home/ksherdy/Temp/icxml/xerces/src
    3131XERCES_ICX_L=$(XERCES_ICX_BASE)/.libs/
    3232XERCES_ICX_l=xerces-c
     
    4848
    4949xerces_icx: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
    50         $(CC) -o gml2svg_icx gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_ICX_I) -L$(XERCES_ICX_L) -l$(XERCES_ICX_l) $(FLAGS) -mstackrealign -Ilib/perflib #$(PAPI) #-DSYSTEM_TIME
     50        $(CC) -o gml2svg_icx gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_ICX_I) -L$(XERCES_ICX_L) -l$(XERCES_ICX_l) $(FLAGS) -mstackrealign -Ilib/perflib $(PAPI) #-DSYSTEM_TIME
    5151        echo export LD_LIBRARY_PATH=$(XERCES_ICX_L)
    5252
    5353xerces_icx_pipeline: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
    54         $(CC) -o gml2svg_icx_pipeline gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_ICX_PIPELINE_I) -L$(XERCES_ICX_PIPELINE_L) -l$(XERCES_ICX_PIPELINE_l) $(FLAGS) -lpthread -mstackrealign -Ilib/perflib #$(PAPI) #-DSYSTEM_TIME
     54        $(CC) -o gml2svg_icx_pipeline gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_ICX_PIPELINE_I) -L$(XERCES_ICX_PIPELINE_L) -l$(XERCES_ICX_PIPELINE_l) $(FLAGS) -lpthread -mstackrealign -Ilib/perflib $(PAPI) #-DSYSTEM_TIME
    5555        echo export LD_LIBRARY_PATH=$(XERCES_ICX_PIPELINE_L)
    5656
  • proto/gml2svg/C/xerces/gml2svg.cpp

    r2827 r2840  
    1111#include <xercesc/sax2/DefaultHandler.hpp>
    1212#include <xercesc/util/XMLString.hpp>
    13 
     13#include <sstream>
    1414#include <perfsec.h>
    1515#include "gml2svg_handler.hpp"
     
    8585               
    8686                if(argc == 4) {
     87                        /* Convert hex string PAPI code to unsigned integer */ 
    8788                        unsigned int temp;
    8889                        std::stringstream ss;
  • proto/gml2svg/C/xerces/perf.sh

    r2827 r2840  
    4646        CC_DIR="cc_3_1_1"
    4747        CC_RSLT="cc_3_1_1.txt"
     48        CC_CSV_RSLT="cc_3_1_1.csv"
    4849
    4950elif [ $OPTION = "i" ] ; then
     
    5657        CC_DIR="cc_icx"
    5758        CC_RSLT="cc_icx.txt"
     59        CC_CSV_RSLT="cc_icx.csv"
    5860
    5961elif [ $OPTION = "p" ] ; then
     
    6668        CC_DIR="cc_icx_pipeline"
    6769        CC_RSLT="cc_icx_pipeline.txt"
     70        CC_CSV_RSLT="cc_icx_pipeline.csv"
    6871
    6972fi
     
    118121echo $CC_RSLT
    119122
     123rm -Rf $CC_CSV_RSLT
     124touch $CC_CSV_RSLT
     125echo "PAPI Event Code, Average per byte" >> $CC_CSV_RSLT
     126for file in `find $CC_DIR -name "*.csv" | sort`
     127do
     128        tail -1 $file >> $CC_CSV_RSLT;
     129done
     130
     131echo -n "CSV result file: "
     132echo $CC_CSV_RSLT
     133
    120134echo "Perf test complete."
    121135
Note: See TracChangeset for help on using the changeset viewer.