Ignore:
Timestamp:
Oct 24, 2012, 1:17:27 PM (7 years ago)
Author:
ksherdy
Message:

Updated template for PAPI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/templates/main.template.cpp

    r2350 r2546  
    4444#ifdef BUFFER_PROFILING
    4545    BOM_Table * parser_timer;
    46 #elif CODE_CLOCKER
    47     #define NUM_EVENTS 1
    48     int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
    49     //int Events[NUM_EVENTS] = {PAPI_L2_DCM};
    50     //int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
    51     int cal_size = 20;
    52     CC * parser_timer = new CC(Events,NUM_EVENTS,cal_size);
     46#elif PAPI
     47                #define PAPI_EVENTS_COUNT 2
     48                int PAPI_EVENTS[PAPI_EVENTS_COUNT] = {PAPI_TOT_CYC, PAPI_BR_MSP};       
     49    CC * parser_timer;
    5350#else
    5451    void * parser_timer;
Note: See TracChangeset for help on using the changeset viewer.