00001 #ifndef _VERBOSE_H
00002 #define _VERBOSE_H
00003
00004 #include <stdio.h>
00005 #include <errno.h>
00006
00007 #include "trace.h"
00008 #include "envelope.h"
00009 #include "register.h"
00010 #include "trace-common.h"
00011
00018 class TraceSimple : public Trace {
00019 public:
00020 int par0;
00021 double par1;
00022 public:
00023 TraceSimple(char **argv);
00024
00025
00026 void userEvent(int eventID);
00027
00028 void userBracketEvent(int eventID, double bt, double et);
00029
00030
00031 void creation(envelope *, int epIdx, int num=1);
00032 void creation(char *msg) {}
00033 void creationMulticast(envelope *, int epIdx, int num=1, const int *pelist=NULL);
00034 void creationDone(int num=1);
00035
00036 void messageRecv(char *env, int pe);
00037
00038
00039
00040
00041
00042 void beginExecute(envelope *, void*);
00043 void beginExecute(char *) {}
00044 void beginExecute(CmiObjId *tid);
00045 void beginExecute(
00046 int event,
00047 int msgType,
00048 int ep,
00049 int srcPe,
00050 int ml,
00051 CmiObjId* idx,
00052 void* obj);
00053 void endExecute(void);
00054
00055
00056 void beginIdle(double curWallTime);
00057 void endIdle(double curWallTime);
00058
00059
00060 void beginComputation(void);
00061 void endComputation(void);
00062
00063
00064 void malloc(void *where, int size, void **stack, int stackSize);
00065 void free(void *where, int size);
00066
00067
00068 void traceClose();
00069 };
00070
00071 #endif
00072