#include "kmp.h" #include "kmp_str.h" #include "kmp_lock.h" #include "kmp_stats.h" #include <algorithm> #include <sstream> #include <iomanip> #include <stdlib.h> // for atexit #define STRINGIZE2(x) #x #define STRINGIZE(x) STRINGIZE2(x) #define expandName(name,flags,ignore) {STRINGIZE(name),flags}, statInfo timeStat::timerInfo[] = { KMP_FOREACH_TIMER(expandName,0) {0,0} }; const statInfo counter::counterInfo[] = { KMP_FOREACH_COUNTER(expandName,0) {0,0} }; #undef expandName #define expandName(ignore1,ignore2,ignore3) {0.0,0.0,0.0}, kmp_stats_output_module::rgb_color kmp_stats_output_module::timerColorInfo[] = { KMP_FOREACH_TIMER(expandName,0) {0.0,0.0,0.0} }; #undef expandName
#include "kmp_lock.h" #include "kmp_stats.h" #include "kmp_str.h" #include <algorithm> #include <ctime> #include <iomanip> #include <sstream> #include <stdlib.h> // for atexit #define STRINGIZE2(x) #x #define STRINGIZE(x) STRINGIZE2(x) #define expandName(name, flags, ignore) {STRINGIZE(name), flags}, statInfo timeStat::timerInfo[] = { KMP_FOREACH_TIMER(expandName, 0){"TIMER_LAST", 0}}; const statInfo counter::counterInfo[] = { KMP_FOREACH_COUNTER(expandName, 0){"COUNTER_LAST", 0}}; #undef expandName #define expandName(ignore1, ignore2, ignore3) {0.0, 0.0, 0.0}, kmp_stats_output_module::rgb_color kmp_stats_output_module::timerColorInfo[] = { KMP_FOREACH_TIMER(expandName, 0){0.0, 0.0, 0.0}}; #undef expandName const kmp_stats_output_module::rgb_color kmp_stats_output_module::globalColorArray[] = { {1.0, 0.0, 0.0}, // red {1.0, 0.6, 0.0}, // orange {1.0, 1.0, 0.0}, // yellow {0.0, 1.0, 0.0}, // green