Changeset 501 for proto/u16u8


Ignore:
Timestamp:
Jul 14, 2010, 9:15:07 PM (9 years ago)
Author:
ksherdy
Message:

Update svn:exterals

Location:
proto/u16u8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/u16u8/src/u16u8.c

    r475 r501  
    1414
    1515
    16 // Profiling
    17 #define BUFFER_PROFILING
    1816#include "../lib/perflib/perfsec.h"
    1917
    2018#ifdef BUFFER_PROFILING
    21 BOM_Table * transcode_timer;
     19        BOM_Table * transcode_timer;
     20
     21#elif CODE_CLOCKER
     22        #define NUM_EVENTS 1
     23        int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
     24        //int Events[NUM_EVENTS] = {PAPI_L2_DCM};
     25        //int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
     26        int cal_size = 20;
     27        CC * transcode_timer = new CC(Events,NUM_EVENTS,cal_size);
     28#else
     29        void * transcode_timer;
    2230#endif
    23 
    2431/*===========================================================================*/
    2532/* UErrorCode */
     
    629636        PERF_SEC_DUMP(transcode_timer);
    630637
     638        PERF_SEC_DESTROY(transcode_timer);
     639
    631640        fclose(outfile);
    632641
  • proto/u16u8/template.c

    r475 r501  
    1515
    1616// Profiling
    17 #define BUFFER_PROFILING
    18 #include "../lib/perflib/perfsec.h"
     17#if (defined(BUFFER_PROFILING) || defined(CODE_CLOCKER))
     18  #include "../lib/perflib/perfsec.h"
     19#endif
    1920
    2021#ifdef BUFFER_PROFILING
    2122BOM_Table * transcode_timer;
     23#endif
     24
     25#ifdef CODE_CLOCKER
     26        #define NUM_EVENTS 1
     27        int Events[NUM_EVENTS] = {PAPI_TOT_CYC};
     28        //int Events[NUM_EVENTS] = {PAPI_L2_DCM};
     29        //int Events[NUM_EVENTS] = {PAPI_TOT_CYC, PAPI_BR_MSP};
     30        int cal_size = 20;
     31        CC * parser_timer = new CC(Events,NUM_EVENTS,cal_size);
    2232#endif
    2333
Note: See TracChangeset for help on using the changeset viewer.