#include <trace-projections.h>
Data Fields | |
bool | converseExit |
Private Member Functions | |
virtual void | traceAddThreadListeners (CthThread tid, envelope *e) |
Private Attributes | |
LogPool * | _logPool |
logpool for all events | |
int | curevent |
int | execEvent |
int | execEp |
int | execPe |
bool | inEntry |
bool | computationStarted |
bool | traceNestedEvents |
int | funcCount |
int | currentPhaseID |
std::stack< NestedEvent, std::vector< NestedEvent > > nestedEvents;LogEntry *lastPhaseEvent;CkVec< int > idxVec;int idxRegistered(int idx);public:double endTime;TraceProjections(char **argv);void userEvent(int e);void userBracketEvent(int e, double bt, double et, int nestedID);void beginUserBracketEvent(int e, int nestedID);void endUserBracketEvent(int e, int nestedID);void userSuppliedBracketedNote(char *, int, double, double);void userSuppliedData(int e);void userSuppliedNote(char *note);void memoryUsage(double m);int traceRegisterUserStat(const char *, int);void updateStatPair(int e, double stat, double time);void updateStat(int e, double stat);void creation(envelope *e, int epIdx, int num=1);void creation(char *m);void creationMulticast(envelope *e, int epIdx, int num=1, const int *pelist=NULL);void creationDone(int num=1);void beginExecute(envelope *e, void *obj=NULL);void beginExecute(char *msg);void beginExecute(CmiObjId *tid);void beginExecute(int event, int msgType, int ep, int srcPe, int ml, CmiObjId *idx=NULL, void *obj=NULL);void changeLastEntryTimestamp(double ts);void beginExecuteLocal(int event, int msgType, int ep, int srcPe, int ml, CmiObjId *idx=NULL);void endExecute(void);void endExecute(char *msg);void endExecuteLocal(void);void messageRecv(char *env, int pe);void beginIdle(double curWallTime);void endIdle(double curWallTime);void beginPack(void);void endPack(void);void beginUnpack(void);void endUnpack(void);void enqueue(envelope *e);void dequeue(envelope *e);void beginComputation(void);void endComputation(void);int traceRegisterUserEvent(const char *, int);void traceClearEps();void traceWriteSts();void traceClose();void traceBegin();void traceEnd();#if CMK_SMP_TRACE_COMMTHREAD void traceBeginOnCommThread();void traceEndOnCommThread();#endif void traceCommSetMsgID(char *msg);void traceGetMsgID(char *msg, int *pe, int *event);void traceSetMsgID(char *msg, int pe, int event);void traceFlushLog(){_logPool-> flushLogBuffer();}void endPhase();void closeTrace(void);void setWriteData(bool b){_logPool- | setWriteData )(b) |
Friends | |
class | TraceProjectionsBOC |
class | KMeansBOC |
TraceProjections will log Converse/Charm++ events and write into .log files; events descriptions will be written into .sts file.
Definition at line 462 of file trace-projections.h.
friend class TraceProjectionsBOC [friend] |
Definition at line 466 of file trace-projections.h.
friend class KMeansBOC [friend] |
Definition at line 467 of file trace-projections.h.
LogPool* TraceProjections::_logPool [private] |
int TraceProjections::curevent [private] |
Definition at line 471 of file trace-projections.h.
int TraceProjections::execEvent [private] |
Definition at line 472 of file trace-projections.h.
int TraceProjections::execEp [private] |
Definition at line 473 of file trace-projections.h.
int TraceProjections::execPe [private] |
Definition at line 474 of file trace-projections.h.
bool TraceProjections::inEntry [private] |
Definition at line 475 of file trace-projections.h.
bool TraceProjections::computationStarted [private] |
Definition at line 476 of file trace-projections.h.
bool TraceProjections::traceNestedEvents [private] |
Definition at line 477 of file trace-projections.h.
Definition at line 479 of file trace-projections.h.
int TraceProjections::funcCount [private] |
Definition at line 481 of file trace-projections.h.
int TraceProjections::currentPhaseID [private] |
Definition at line 482 of file trace-projections.h.
std::stack<NestedEvent, std::vector<NestedEvent>> nestedEvents; LogEntry* lastPhaseEvent; CkVec<int> idxVec; int idxRegistered(int idx); public: double endTime; TraceProjections(char **argv); void userEvent(int e); void userBracketEvent(int e, double bt, double et, int nestedID ); void beginUserBracketEvent(int e, int nestedID ); void endUserBracketEvent(int e, int nestedID ); void userSuppliedBracketedNote(char*, int, double, double); void userSuppliedData(int e); void userSuppliedNote(char* note); void memoryUsage(double m); int traceRegisterUserStat(const char*, int); void updateStatPair(int e, double stat, double time); void updateStat(int e, double stat); void creation(envelope *e, int epIdx, int num=1); void creation(char *m); void creationMulticast(envelope *e, int epIdx, int num=1, const int *pelist=NULL); void creationDone(int num=1); void beginExecute(envelope *e, void *obj=NULL); void beginExecute(char *msg); void beginExecute(CmiObjId *tid); void beginExecute(int event,int msgType,int ep,int srcPe,int ml,CmiObjId *idx=NULL, void *obj=NULL); void changeLastEntryTimestamp(double ts); void beginExecuteLocal(int event,int msgType,int ep,int srcPe,int ml,CmiObjId *idx=NULL); void endExecute(void); void endExecute(char *msg); void endExecuteLocal(void); void messageRecv(char *env, int pe); void beginIdle(double curWallTime); void endIdle(double curWallTime); void beginPack(void); void endPack(void); void beginUnpack(void); void endUnpack(void); void enqueue(envelope *e); void dequeue(envelope *e); void beginComputation(void); void endComputation(void); int traceRegisterUserEvent(const char*, int); void traceClearEps(); void traceWriteSts(); void traceClose(); void traceBegin(); void traceEnd();#if CMK_SMP_TRACE_COMMTHREAD void traceBeginOnCommThread(); void traceEndOnCommThread();#endif void traceCommSetMsgID(char *msg); void traceGetMsgID(char *msg, int *pe, int *event); void traceSetMsgID(char *msg, int pe, int event); void traceFlushLog() { _logPool->flushLogBuffer(); } void endPhase(); void closeTrace(void); void setWriteData(bool b){ _logPool- TraceProjections::setWriteData)(b) [private] |