#include <traceCore.h>
Public Member Functions | |
TraceCore (char **argv) | |
~TraceCore () | |
void | RegisterLanguage (int lID) |
void | RegisterLanguage (int lID, const char *lName) |
void | RegisterEvent (int lID, int eID) |
void | LogEvent (int lID, int eID) |
void | LogEvent (int lID, int eID, int iLen, const int *iData) |
void | LogEvent (int lID, int eID, int iLen, const int *iData, double t) |
void | LogEvent (int lID, int eID, int sLen, const char *sData) |
void | LogEvent (int lID, int eID, int iLen, const int *iData, int sLen, const char *sData) |
Private Member Functions | |
void | startPtc () |
void | closePtc () |
Private Attributes | |
TraceLogger * | traceLogger |
FILE * | fpPtc |
struct TraceCoreEvent * | eventLists [MAX_NUM_LANGUAGES] |
int | maxlID |
int | maxeID [MAX_NUM_LANGUAGES] |
int | numLangs |
int | numEvents [MAX_NUM_LANGUAGES] |
int | lIDList [MAX_NUM_LANGUAGES] |
char * | lNames [MAX_NUM_LANGUAGES] |
int | traceCoreOn |
Definition at line 29 of file traceCore.h.
TraceCore::TraceCore | ( | char ** | argv | ) |
Definition at line 28 of file traceCore.C.
References CmiGetArgFlag(), startPtc(), traceCoreOn, and traceLogger.
TraceCore::~TraceCore | ( | ) |
Definition at line 48 of file traceCore.C.
References closePtc(), and traceLogger.
void TraceCore::startPtc | ( | ) | [private] |
Definition at line 124 of file traceCore.C.
References CmiAbort(), eventLists, fpPtc, maxeID, maxlID, numEvents, numLangs, and traceCoreOn.
Referenced by TraceCore().
void TraceCore::closePtc | ( | ) | [private] |
Definition at line 146 of file traceCore.C.
References eventLists, fpPtc, lIDList, lNames, maxeID, maxlID, numEvents, numLangs, print_TraceCoreEvent(), and traceCoreOn.
Referenced by ~TraceCore().
void TraceCore::RegisterLanguage | ( | int | lID | ) |
void TraceCore::RegisterLanguage | ( | int | lID, | |
const char * | lName | |||
) |
Definition at line 54 of file traceCore.C.
References lIDList, lNames, maxlID, numLangs, TraceLogger::RegisterLanguage(), traceCoreOn, and traceLogger.
Definition at line 105 of file traceCore.C.
References eventLists, insert_TraceCoreEvent(), lIDList, maxeID, numEvents, numLangs, and traceCoreOn.
Definition at line 168 of file traceCore.C.
References traceCoreOn.
Referenced by LogEvent().
Definition at line 176 of file traceCore.C.
References LogEvent(), and traceCoreOn.
Definition at line 184 of file traceCore.C.
References TraceLogger::add(), CmiPrintf(), malloc(), traceCoreOn, TraceCoreTimer(), and traceLogger.
Definition at line 204 of file traceCore.C.
References LogEvent(), and traceCoreOn.
void TraceCore::LogEvent | ( | int | lID, | |
int | eID, | |||
int | iLen, | |||
const int * | iData, | |||
int | sLen, | |||
const char * | sData | |||
) |
Definition at line 212 of file traceCore.C.
References TraceLogger::add(), malloc(), traceCoreOn, TraceCoreTimer(), and traceLogger.
TraceLogger* TraceCore::traceLogger [private] |
Definition at line 32 of file traceCore.h.
Referenced by LogEvent(), RegisterLanguage(), TraceCore(), and ~TraceCore().
FILE* TraceCore::fpPtc [private] |
struct TraceCoreEvent* TraceCore::eventLists[MAX_NUM_LANGUAGES] [read, private] |
Definition at line 36 of file traceCore.h.
Referenced by closePtc(), RegisterEvent(), and startPtc().
int TraceCore::maxlID [private] |
Definition at line 37 of file traceCore.h.
Referenced by closePtc(), RegisterLanguage(), and startPtc().
int TraceCore::maxeID[MAX_NUM_LANGUAGES] [private] |
Definition at line 38 of file traceCore.h.
Referenced by closePtc(), RegisterEvent(), and startPtc().
int TraceCore::numLangs [private] |
Definition at line 39 of file traceCore.h.
Referenced by closePtc(), RegisterEvent(), RegisterLanguage(), and startPtc().
int TraceCore::numEvents[MAX_NUM_LANGUAGES] [private] |
Definition at line 40 of file traceCore.h.
Referenced by closePtc(), RegisterEvent(), and startPtc().
int TraceCore::lIDList[MAX_NUM_LANGUAGES] [private] |
Definition at line 41 of file traceCore.h.
Referenced by closePtc(), RegisterEvent(), and RegisterLanguage().
char* TraceCore::lNames[MAX_NUM_LANGUAGES] [private] |
int TraceCore::traceCoreOn [private] |
Definition at line 43 of file traceCore.h.
Referenced by closePtc(), LogEvent(), RegisterEvent(), RegisterLanguage(), startPtc(), and TraceCore().