Loading lib_debug/wmc_auto.c +1 −0 Original line number Diff line number Diff line Loading @@ -1272,6 +1272,7 @@ static void mem_count_summary(void) } /* Find duplicate records (same hash and worst-case heap size) */ /* Note: average usage is not re-calculated */ for ( i = 0; i < Num_Records; i++ ) { record_ptr = &( allocation_list[i] ); Loading lib_debug/wmc_auto.h +17 −19 Original line number Diff line number Diff line Loading @@ -23,10 +23,8 @@ /* Real-time relationships */ #define FRAMES_PER_SECOND 50.0 #define MILLION_CYCLES 1e6 #define WMOPS_BOOST_FAC (1.0f) /* scaling factor for equalizing the difference between automatic and manual instrumentation */ #define FAC (FRAMES_PER_SECOND/(MILLION_CYCLES*WMOPS_BOOST_FAC)) #define FAC (FRAMES_PER_SECOND/MILLION_CYCLES*WMOPS_BOOST_FAC) #define ENABLE_TREE 0 /* Call tree may be activated by setting this flag to 1 */ #define NUM_INST 20 /* Total number of instruction types (in enum below) */ Loading Loading @@ -242,24 +240,24 @@ static int wmc_flag_ = 0; #endif /* Define all Macros without '{' & '}' (None of these should be called externally!) */ #define ABS_(x) OP_COUNT_(_ABS, (x)*WMOPS_BOOST_FAC) #define ADD_(x) OP_COUNT_(_ADD, (x)*WMOPS_BOOST_FAC) #define MULT_(x) OP_COUNT_(_MULT, (x)*WMOPS_BOOST_FAC) #define MAC_(x) OP_COUNT_(_MAC, (x)*WMOPS_BOOST_FAC) #define MOVE_(x) OP_COUNT_(_MOVE, (x)*WMOPS_BOOST_FAC) #define STORE_(x) OP_COUNT_(_STORE, (x)*WMOPS_BOOST_FAC) #define LOGIC_(x) OP_COUNT_(_LOGIC, (x)*WMOPS_BOOST_FAC) #define SHIFT_(x) OP_COUNT_(_SHIFT, (x)*WMOPS_BOOST_FAC) #define BRANCH_(x) OP_COUNT_(_BRANCH, (x)*WMOPS_BOOST_FAC) #define DIV_(x) OP_COUNT_(_DIV, (x)*WMOPS_BOOST_FAC) #define SQRT_(x) OP_COUNT_(_SQRT, (x)*WMOPS_BOOST_FAC) #define TRANS_(x) OP_COUNT_(_TRANS, (x)*WMOPS_BOOST_FAC) #define ABS_(x) OP_COUNT_(_ABS, (x)/WMOPS_BOOST_FAC) #define ADD_(x) OP_COUNT_(_ADD, (x)/WMOPS_BOOST_FAC) #define MULT_(x) OP_COUNT_(_MULT, (x)/WMOPS_BOOST_FAC) #define MAC_(x) OP_COUNT_(_MAC, (x)/WMOPS_BOOST_FAC) #define MOVE_(x) OP_COUNT_(_MOVE, (x)/WMOPS_BOOST_FAC) #define STORE_(x) OP_COUNT_(_STORE, (x)/WMOPS_BOOST_FAC) #define LOGIC_(x) OP_COUNT_(_LOGIC, (x)/WMOPS_BOOST_FAC) #define SHIFT_(x) OP_COUNT_(_SHIFT, (x)/WMOPS_BOOST_FAC) #define BRANCH_(x) OP_COUNT_(_BRANCH, (x)/WMOPS_BOOST_FAC) #define DIV_(x) OP_COUNT_(_DIV, (x)/WMOPS_BOOST_FAC) #define SQRT_(x) OP_COUNT_(_SQRT, (x)/WMOPS_BOOST_FAC) #define TRANS_(x) OP_COUNT_(_TRANS, (x)/WMOPS_BOOST_FAC) #define POWER_(x) TRANS_(x) #define LOG_(x) TRANS_(x) #define LOOP_(x) OP_COUNT_(_LOOP, (x)*WMOPS_BOOST_FAC) #define INDIRECT_(x) OP_COUNT_(_INDIRECT, (x)*WMOPS_BOOST_FAC) #define PTR_INIT_(x) OP_COUNT_(_PTR_INIT, (x)*WMOPS_BOOST_FAC) #define FUNC_(x) (OP_COUNT_(_MOVE, (x)*WMOPS_BOOST_FAC), OP_COUNT_(_FUNC, 1)) #define LOOP_(x) OP_COUNT_(_LOOP, (x)/WMOPS_BOOST_FAC) #define INDIRECT_(x) OP_COUNT_(_INDIRECT, (x)/WMOPS_BOOST_FAC) #define PTR_INIT_(x) OP_COUNT_(_PTR_INIT, (x)/WMOPS_BOOST_FAC) #define FUNC_(x) (OP_COUNT_(_MOVE, (x)/WMOPS_BOOST_FAC), OP_COUNT_(_FUNC, 1)) #define MISC_(x) ABS_(x) /* Math Operations */ Loading Loading
lib_debug/wmc_auto.c +1 −0 Original line number Diff line number Diff line Loading @@ -1272,6 +1272,7 @@ static void mem_count_summary(void) } /* Find duplicate records (same hash and worst-case heap size) */ /* Note: average usage is not re-calculated */ for ( i = 0; i < Num_Records; i++ ) { record_ptr = &( allocation_list[i] ); Loading
lib_debug/wmc_auto.h +17 −19 Original line number Diff line number Diff line Loading @@ -23,10 +23,8 @@ /* Real-time relationships */ #define FRAMES_PER_SECOND 50.0 #define MILLION_CYCLES 1e6 #define WMOPS_BOOST_FAC (1.0f) /* scaling factor for equalizing the difference between automatic and manual instrumentation */ #define FAC (FRAMES_PER_SECOND/(MILLION_CYCLES*WMOPS_BOOST_FAC)) #define FAC (FRAMES_PER_SECOND/MILLION_CYCLES*WMOPS_BOOST_FAC) #define ENABLE_TREE 0 /* Call tree may be activated by setting this flag to 1 */ #define NUM_INST 20 /* Total number of instruction types (in enum below) */ Loading Loading @@ -242,24 +240,24 @@ static int wmc_flag_ = 0; #endif /* Define all Macros without '{' & '}' (None of these should be called externally!) */ #define ABS_(x) OP_COUNT_(_ABS, (x)*WMOPS_BOOST_FAC) #define ADD_(x) OP_COUNT_(_ADD, (x)*WMOPS_BOOST_FAC) #define MULT_(x) OP_COUNT_(_MULT, (x)*WMOPS_BOOST_FAC) #define MAC_(x) OP_COUNT_(_MAC, (x)*WMOPS_BOOST_FAC) #define MOVE_(x) OP_COUNT_(_MOVE, (x)*WMOPS_BOOST_FAC) #define STORE_(x) OP_COUNT_(_STORE, (x)*WMOPS_BOOST_FAC) #define LOGIC_(x) OP_COUNT_(_LOGIC, (x)*WMOPS_BOOST_FAC) #define SHIFT_(x) OP_COUNT_(_SHIFT, (x)*WMOPS_BOOST_FAC) #define BRANCH_(x) OP_COUNT_(_BRANCH, (x)*WMOPS_BOOST_FAC) #define DIV_(x) OP_COUNT_(_DIV, (x)*WMOPS_BOOST_FAC) #define SQRT_(x) OP_COUNT_(_SQRT, (x)*WMOPS_BOOST_FAC) #define TRANS_(x) OP_COUNT_(_TRANS, (x)*WMOPS_BOOST_FAC) #define ABS_(x) OP_COUNT_(_ABS, (x)/WMOPS_BOOST_FAC) #define ADD_(x) OP_COUNT_(_ADD, (x)/WMOPS_BOOST_FAC) #define MULT_(x) OP_COUNT_(_MULT, (x)/WMOPS_BOOST_FAC) #define MAC_(x) OP_COUNT_(_MAC, (x)/WMOPS_BOOST_FAC) #define MOVE_(x) OP_COUNT_(_MOVE, (x)/WMOPS_BOOST_FAC) #define STORE_(x) OP_COUNT_(_STORE, (x)/WMOPS_BOOST_FAC) #define LOGIC_(x) OP_COUNT_(_LOGIC, (x)/WMOPS_BOOST_FAC) #define SHIFT_(x) OP_COUNT_(_SHIFT, (x)/WMOPS_BOOST_FAC) #define BRANCH_(x) OP_COUNT_(_BRANCH, (x)/WMOPS_BOOST_FAC) #define DIV_(x) OP_COUNT_(_DIV, (x)/WMOPS_BOOST_FAC) #define SQRT_(x) OP_COUNT_(_SQRT, (x)/WMOPS_BOOST_FAC) #define TRANS_(x) OP_COUNT_(_TRANS, (x)/WMOPS_BOOST_FAC) #define POWER_(x) TRANS_(x) #define LOG_(x) TRANS_(x) #define LOOP_(x) OP_COUNT_(_LOOP, (x)*WMOPS_BOOST_FAC) #define INDIRECT_(x) OP_COUNT_(_INDIRECT, (x)*WMOPS_BOOST_FAC) #define PTR_INIT_(x) OP_COUNT_(_PTR_INIT, (x)*WMOPS_BOOST_FAC) #define FUNC_(x) (OP_COUNT_(_MOVE, (x)*WMOPS_BOOST_FAC), OP_COUNT_(_FUNC, 1)) #define LOOP_(x) OP_COUNT_(_LOOP, (x)/WMOPS_BOOST_FAC) #define INDIRECT_(x) OP_COUNT_(_INDIRECT, (x)/WMOPS_BOOST_FAC) #define PTR_INIT_(x) OP_COUNT_(_PTR_INIT, (x)/WMOPS_BOOST_FAC) #define FUNC_(x) (OP_COUNT_(_MOVE, (x)/WMOPS_BOOST_FAC), OP_COUNT_(_FUNC, 1)) #define MISC_(x) ABS_(x) /* Math Operations */ Loading