#include <traceCore.h>
Public Member Functions | |
TraceLogger (char *program, int b) | |
~TraceLogger () | |
void | RegisterLanguage (int lID, const char *ln) |
void | write (void) |
void | writeBinary (void) |
void | writeSts (void) |
void | add (int lID, int eID, double timestamp, int iLen, int *iData, int sLen, char *sData) |
void | initlogfiles () |
Private Member Functions | |
void | openLogFiles () |
void | closeLogFiles () |
void | verifyFptrs () |
void | flushLogFiles () |
Private Attributes | |
int | poolSize |
int | numEntries |
TraceEntry * | pool |
TraceEntry * | buffer |
int | numLangs |
char * | lName [MAX_NUM_LANGUAGES] |
char * | fName [MAX_NUM_LANGUAGES] |
FILE * | fptrs [MAX_NUM_LANGUAGES] |
int | binary |
bool | lastWriteFlag |
int | prevLID |
int | prevSeek |
bool | isWriting |
char * | pgm |
Definition at line 95 of file traceCore.h.
TraceLogger::TraceLogger | ( | char * | program, | |
int | b | |||
) |
Definition at line 306 of file traceCore.C.
References binary, fName, isWriting, lName, numEntries, pgm, pool, and poolSize.
TraceLogger::~TraceLogger | ( | ) |
Definition at line 339 of file traceCore.C.
References binary, fName, lastWriteFlag, lName, write(), and writeBinary().
void TraceLogger::RegisterLanguage | ( | int | lID, | |
const char * | ln | |||
) |
Definition at line 351 of file traceCore.C.
References binary, CmiAbort(), CmiMyPe(), CmiPrintf(), fName, fptrs, lName, numLangs, and pgm.
Referenced by TraceCore::RegisterLanguage().
void TraceLogger::write | ( | void | ) |
Definition at line 392 of file traceCore.C.
References closeLogFiles(), flushLogFiles(), fptrs, TraceEntry::languageID, lastWriteFlag, numEntries, pool, prevLID, prevSeek, verifyFptrs(), and TraceEntry::write().
Referenced by add(), and ~TraceLogger().
void TraceLogger::writeBinary | ( | void | ) |
Definition at line 437 of file traceCore.C.
Referenced by add(), and ~TraceLogger().
void TraceLogger::writeSts | ( | void | ) |
Definition at line 439 of file traceCore.C.
void TraceLogger::add | ( | int | lID, | |
int | eID, | |||
double | timestamp, | |||
int | iLen, | |||
int * | iData, | |||
int | sLen, | |||
char * | sData | |||
) |
Definition at line 441 of file traceCore.C.
References binary, isWriting, numEntries, pool, poolSize, TraceCoreTimer(), write(), and writeBinary().
Referenced by TraceCore::LogEvent().
void TraceLogger::initlogfiles | ( | ) |
Definition at line 333 of file traceCore.C.
References closeLogFiles(), and openLogFiles().
void TraceLogger::openLogFiles | ( | ) | [private] |
Definition at line 474 of file traceCore.C.
References assert, CmiAbort(), CmiMyPe(), CmiPrintf(), fName, fptrs, numLangs, and verifyFptrs().
Referenced by initlogfiles().
void TraceLogger::closeLogFiles | ( | ) | [private] |
Definition at line 515 of file traceCore.C.
References fptrs, and numLangs.
Referenced by initlogfiles(), and write().
void TraceLogger::verifyFptrs | ( | ) | [private] |
Definition at line 383 of file traceCore.C.
References CmiPrintf(), fptrs, and numLangs.
Referenced by openLogFiles(), and write().
void TraceLogger::flushLogFiles | ( | ) | [private] |
Definition at line 526 of file traceCore.C.
References fptrs, and numLangs.
Referenced by write().
int TraceLogger::poolSize [private] |
int TraceLogger::numEntries [private] |
TraceEntry* TraceLogger::pool [private] |
TraceEntry* TraceLogger::buffer [private] |
Definition at line 101 of file traceCore.h.
int TraceLogger::numLangs [private] |
Definition at line 103 of file traceCore.h.
Referenced by closeLogFiles(), flushLogFiles(), openLogFiles(), RegisterLanguage(), and verifyFptrs().
char* TraceLogger::lName[MAX_NUM_LANGUAGES] [private] |
Definition at line 104 of file traceCore.h.
Referenced by RegisterLanguage(), TraceLogger(), and ~TraceLogger().
char* TraceLogger::fName[MAX_NUM_LANGUAGES] [private] |
Definition at line 105 of file traceCore.h.
Referenced by openLogFiles(), RegisterLanguage(), TraceLogger(), and ~TraceLogger().
FILE* TraceLogger::fptrs[MAX_NUM_LANGUAGES] [private] |
Definition at line 106 of file traceCore.h.
Referenced by closeLogFiles(), flushLogFiles(), openLogFiles(), RegisterLanguage(), verifyFptrs(), and write().
int TraceLogger::binary [private] |
Definition at line 108 of file traceCore.h.
Referenced by add(), RegisterLanguage(), TraceLogger(), and ~TraceLogger().
bool TraceLogger::lastWriteFlag [private] |
int TraceLogger::prevLID [private] |
int TraceLogger::prevSeek [private] |
bool TraceLogger::isWriting [private] |
char* TraceLogger::pgm [private] |