
#include <trace-projections.h>

Public Member Functions | |
| LogPool (char *pgm) | |
| ~LogPool () | |
| void | setBinary (int b) |
| void | setNumSubdirs (int n) |
| void | setWriteSummaryFiles (int n) |
| void | setCompressed (int c) |
| void | createFile (const char *fix="") |
| void | createSts (const char *fix="") |
| void | createRC () |
| void | openLog (const char *mode) |
| void | closeLog (void) |
| void | writeLog (void) |
| void | write (int writedelta) |
| void | writeSts (void) |
| void | writeSts (TraceProjections *traceProj) |
| void | writeRC (void) |
| void | writeStatis () |
| void | initializePhases () |
| void | setAllPhases (bool val) |
| void | add (unsigned char type, unsigned short mIdx, unsigned short eIdx, double time, int event, int pe, int ml=0, CmiObjId *id=0, double recvT=0.0, double cpuT=0.0, int numPe=0, double statVal=0.0) |
| void | addPapi (LONG_LONG_PAPI *papVals) |
| void | addUserSupplied (int data) |
| add a record for a user supplied piece of data | |
| void | updateStat (unsigned char type, int e, double cputime, double time, double stat, int pe) |
| void | addUserSuppliedNote (char *note) |
| add a record for a user supplied piece of data | |
| void | addUserBracketEventNestedID (unsigned char type, double time, UShort mIdx, int event, int nestedID) |
| void | add (unsigned char type, double time, unsigned short funcID, int lineNum, char *fileName) |
| void | addMemoryUsage (unsigned char type, double time, double memUsage) |
| void | addUserSuppliedBracketedNote (char *note, int eventID, double bt, double et) |
| void | addCreationMulticast (unsigned short mIdx, unsigned short eIdx, double time, int event, int pe, int ml=0, CmiObjId *id=0, double recvT=0., int numPe=0, const int *pelist=NULL) |
| void | flushLogBuffer () |
| void | postProcessLog () |
| void | setWriteData (bool b) |
| void | modLastEntryTimestamp (double ts) |
| void | setNewStartTime () |
Private Member Functions | |
| void | writeHeader () |
Private Attributes | |
| bool | writeData |
| bool | writeSummaryFiles |
| bool | binary |
| bool | hasFlushed |
| bool | headerWritten |
| bool | fileCreated |
| bool | compressed |
| unsigned int | poolSize |
| unsigned int | numEntries |
| unsigned int | lastCreationEvent |
| int | numPhases |
| int | nSubdirs |
| LogEntry * | pool |
| FILE * | fp |
| FILE * | deltafp |
| FILE * | stsfp |
| FILE * | rcfp |
| FILE * | statisfp |
| char * | fname |
| char * | dfname |
| char * | pgmname |
| gzFile | deltazfp |
| gzFile | zfp |
| double | prevTime |
| double | timeErr |
| double | globalStartTime |
| double | globalEndTime |
| bool * | keepPhase |
| double | beginComputationTime |
| double | endComputationTime |
| double | statisLastTimer |
| double | statisLastProcessTimer |
| double | statisLastIdleTimer |
| double | statisLastPackTimer |
| double | statisLastUnpackTimer |
| double | statisTotalExecutionTime |
| double | statisTotalIdleTime |
| double | statisTotalPackTime |
| double | statisTotalUnpackTime |
| long long | statisTotalCreationMsgs |
| long long | statisTotalCreationBytes |
| long long | statisTotalMCastMsgs |
| long long | statisTotalMCastBytes |
| long long | statisTotalEnqueueMsgs |
| long long | statisTotalDequeueMsgs |
| long long | statisTotalRecvMsgs |
| long long | statisTotalRecvBytes |
| long long | statisTotalMemAlloc |
| long long | statisTotalMemFree |
Friends | |
| class | TraceProjections |
| class | TraceProjectionsBOC |
| class | KMeansBOC |
| class | controlPointManager |
Definition at line 245 of file trace-projections.h.
| void LogPool::setBinary | ( | int | b | ) | [inline] |
| void LogPool::setNumSubdirs | ( | int | n | ) | [inline] |
| void LogPool::setWriteSummaryFiles | ( | int | n | ) | [inline] |
| void LogPool::setCompressed | ( | int | c | ) | [inline] |
| void LogPool::initializePhases | ( | ) | [inline] |
Definition at line 339 of file trace-projections.h.
References keepPhase, and numPhases.
Referenced by KMeansBOC::flushCheckDone().

| void LogPool::setAllPhases | ( | bool | val | ) | [inline] |
Definition at line 346 of file trace-projections.h.
References keepPhase, and numPhases.
Referenced by KMeansBOC::phaseDone().

| void LogPool::addPapi | ( | LONG_LONG_PAPI * | papVals | ) | [inline] |
Definition at line 358 of file trace-projections.h.
References LogEntry::addPapi(), numEntries, and pool.

| void LogPool::updateStat | ( | unsigned char | type, | |
| int | e, | |||
| double | cputime, | |||
| double | time, | |||
| double | stat, | |||
| int | pe | |||
| ) |
| void LogPool::setWriteData | ( | bool | b | ) | [inline] |
| void LogPool::setNewStartTime | ( | ) | [inline] |
Definition at line 387 of file trace-projections.h.
References globalStartTime, numEntries, and pool.
friend class TraceProjections [friend] |
Definition at line 246 of file trace-projections.h.
friend class TraceProjectionsBOC [friend] |
Definition at line 250 of file trace-projections.h.
friend class KMeansBOC [friend] |
Definition at line 251 of file trace-projections.h.
friend class controlPointManager [friend] |
Definition at line 253 of file trace-projections.h.
bool LogPool::writeData [private] |
Definition at line 255 of file trace-projections.h.
Referenced by LogPool(), setWriteData(), and ~LogPool().
bool LogPool::writeSummaryFiles [private] |
Definition at line 256 of file trace-projections.h.
Referenced by LogPool(), setWriteSummaryFiles(), and ~LogPool().
bool LogPool::binary [private] |
Definition at line 257 of file trace-projections.h.
Referenced by setBinary(), write(), and writeHeader().
bool LogPool::hasFlushed [private] |
Definition at line 258 of file trace-projections.h.
Referenced by flushLogBuffer(), LogPool(), and KMeansBOC::startKMeansAnalysis().
bool LogPool::headerWritten [private] |
bool LogPool::fileCreated [private] |
bool LogPool::compressed [private] |
Definition at line 262 of file trace-projections.h.
Referenced by closeLog(), createFile(), openLog(), setCompressed(), write(), and writeHeader().
unsigned int LogPool::poolSize [private] |
Definition at line 264 of file trace-projections.h.
Referenced by add(), addCreationMulticast(), addMemoryUsage(), addUserBracketEventNestedID(), addUserSuppliedBracketedNote(), and LogPool().
unsigned int LogPool::numEntries [private] |
Definition at line 265 of file trace-projections.h.
Referenced by add(), addCreationMulticast(), addMemoryUsage(), addPapi(), addUserBracketEventNestedID(), addUserSupplied(), addUserSuppliedBracketedNote(), addUserSuppliedNote(), flushLogBuffer(), KMeansBOC::getNextPhaseMetrics(), LogPool(), modLastEntryTimestamp(), setNewStartTime(), write(), and writeHeader().
unsigned int LogPool::lastCreationEvent [private] |
Definition at line 266 of file trace-projections.h.
Referenced by add(), addCreationMulticast(), addMemoryUsage(), flushLogBuffer(), and LogPool().
int LogPool::numPhases [private] |
Definition at line 267 of file trace-projections.h.
Referenced by add(), initializePhases(), LogPool(), KMeansBOC::phaseDone(), setAllPhases(), and writeSts().
int LogPool::nSubdirs [private] |
Definition at line 268 of file trace-projections.h.
Referenced by createFile(), and setNumSubdirs().
LogEntry* LogPool::pool [private] |
Definition at line 269 of file trace-projections.h.
Referenced by add(), addCreationMulticast(), addMemoryUsage(), addPapi(), addUserBracketEventNestedID(), addUserSupplied(), addUserSuppliedBracketedNote(), addUserSuppliedNote(), flushLogBuffer(), KMeansBOC::getNextPhaseMetrics(), LogPool(), modLastEntryTimestamp(), setNewStartTime(), write(), and ~LogPool().
FILE* LogPool::fp [private] |
Definition at line 270 of file trace-projections.h.
Referenced by add(), closeLog(), openLog(), updateProjLog(), write(), and writeHeader().
FILE* LogPool::deltafp [private] |
FILE* LogPool::stsfp [private] |
FILE* LogPool::rcfp [private] |
FILE* LogPool::statisfp [private] |
char* LogPool::fname [private] |
Definition at line 275 of file trace-projections.h.
Referenced by createFile(), createRC(), createSts(), openLog(), writeStatis(), and ~LogPool().
char* LogPool::dfname [private] |
Definition at line 276 of file trace-projections.h.
char* LogPool::pgmname [private] |
gzFile LogPool::deltazfp [private] |
gzFile LogPool::zfp [private] |
Definition at line 280 of file trace-projections.h.
Referenced by closeLog(), openLog(), write(), and writeHeader().
double LogPool::prevTime [private] |
double LogPool::timeErr [private] |
double LogPool::globalStartTime [private] |
Definition at line 288 of file trace-projections.h.
Referenced by LogPool(), setNewStartTime(), and writeRC().
double LogPool::globalEndTime [private] |
bool* LogPool::keepPhase [private] |
Definition at line 292 of file trace-projections.h.
Referenced by initializePhases(), LogPool(), KMeansBOC::phaseDone(), setAllPhases(), and write().
double LogPool::beginComputationTime [private] |
double LogPool::endComputationTime [private] |
double LogPool::statisLastTimer [private] |
Definition at line 297 of file trace-projections.h.
double LogPool::statisLastProcessTimer [private] |
double LogPool::statisLastIdleTimer [private] |
double LogPool::statisLastPackTimer [private] |
double LogPool::statisLastUnpackTimer [private] |
double LogPool::statisTotalExecutionTime [private] |
Definition at line 302 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
double LogPool::statisTotalIdleTime [private] |
Definition at line 303 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
double LogPool::statisTotalPackTime [private] |
Definition at line 304 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
double LogPool::statisTotalUnpackTime [private] |
Definition at line 305 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
long long LogPool::statisTotalCreationMsgs [private] |
Definition at line 306 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
long long LogPool::statisTotalCreationBytes [private] |
Definition at line 307 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
long long LogPool::statisTotalMCastMsgs [private] |
Definition at line 308 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
long long LogPool::statisTotalMCastBytes [private] |
Definition at line 309 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
long long LogPool::statisTotalEnqueueMsgs [private] |
long long LogPool::statisTotalDequeueMsgs [private] |
long long LogPool::statisTotalRecvMsgs [private] |
Definition at line 312 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
long long LogPool::statisTotalRecvBytes [private] |
Definition at line 313 of file trace-projections.h.
Referenced by add(), LogPool(), and writeStatis().
long long LogPool::statisTotalMemAlloc [private] |
long long LogPool::statisTotalMemFree [private] |
1.5.5