#include "stdafx.h" /*** For regular profiling: ***/ #define PROFILING_ON 1 #pragma comment(lib, "tau-profile-static.lib") /*** For callpath profiling: ***/ //#define PROFILING_ON 1 //#define TAU_CALLPATH 1 //#pragma comment(lib, "tau-callpath-static.lib") /*** For tracing: ***/ //#define TRACING_ON 1 //#pragma comment(lib, "tau-trace-static.lib") #define CSIZE 10 #define TAU_WINDOWS #define TAU_DOT_H_LESS_HEADERS #include #include #include void foo() { TAU_PROFILE("foo", "", TAU_USER); Sleep(1000); } void bar() { TAU_PROFILE("bar", "", TAU_USER); Sleep(2000); } void func(int me, int proc) { int i; int field[CSIZE]; MPI_Status status; for (i=0; i