M3_profile.h

00001 #ifndef _H_M3_profile
00002 #define _H_M3_profile
00003 
00004 #ifdef USE_MPI
00005 #include "mpi.h"
00006 #endif
00007 #include "M3.h"
00008 
00009 
00010 #define M3_PROFILE_MAX_SECTIONS 256
00011 #define M3_PROFILE_LEVEL 1
00012 
00013 /* 
00014   ENVIRONMENT VARIABLES:
00015   M3_PROFILE_LEVEL
00016   if set to 0 then no profiling info will be printed.
00017   if set to 1 then profiling will be printed but only aggregate information if MPI is used.
00018   if set to 2 then profileing will be printed for every processor and aggregate statistics.
00019 */
00020 
00021 void M3_ProfileInit( char *titleString );
00022 void M3_ProfileFinalize( void );
00023 void M3_ProfileStart( int sectionID, char *sectionName );
00024 void M3_ProfileStop( int sectionID );
00025 
00026 
00027 #endif

Generated on Mon Nov 24 10:05:12 2008 for M3 by  doxygen 1.5.3-20071008