Changeset 2845 for proto


Ignore:
Timestamp:
Jan 24, 2013, 7:33:52 PM (7 years ago)
Author:
ksherdy
Message:

Added support to run gml2svg using perf linux-tools as an alternative.

Location:
proto/gml2svg/C/xerces
Files:
2 edited

Legend:

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

    r2840 r2845  
    33
    44PAPI_DIR=/usr/local/papi
    5 # PAPI_EVENT_CODE=0
    65
    76ARCH=$(shell getconf LONG_BIT)
     
    1312    PAPI = -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib #-DPAPI_EVENT_CODE=$(PAPI_EVENT_CODE)
    1413endif
     14
     15PAPI=
    1516
    1617LIBC=../../lib/C
  • proto/gml2svg/C/xerces/gml2svg.cpp

    r2840 r2845  
    4242int main (int argc, char* argv[]) {
    4343
     44        PERF_SEC_BIND(128);
     45
    4446        char * gml_src_dir_path = NULL;
    4547        char * svg_dest_dir_path = NULL;
     
    8486                }
    8587               
     88                #if defined (PAPI)
     89
    8690                if(argc == 4) {
    8791                        /* Convert hex string PAPI code to unsigned integer */ 
     
    97101                }
    98102
     103                #endif
     104
    99105        }
    100106        else
     
    123129
    124130        #if defined (PAPI)
     131
     132       
     133
    125134                #define PAPI_EVENTS_COUNT 1
    126135                // int papi_event = PAPI_TOT_CYC;
Note: See TracChangeset for help on using the changeset viewer.