PPL Logo

LogPool Class Reference
[Charm++ Trace Module]

log pool in trace projection More...

#include <trace-projections.h>

Collaboration diagram for LogPool:

Collaboration graph
[legend]

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
LogEntrypool
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
boolkeepPhase
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

Detailed Description

log pool in trace projection

Definition at line 245 of file trace-projections.h.


Member Function Documentation

void LogPool::setBinary ( int  b  )  [inline]

Definition at line 322 of file trace-projections.h.

References binary.

void LogPool::setNumSubdirs ( int  n  )  [inline]

Definition at line 323 of file trace-projections.h.

References nSubdirs.

void LogPool::setWriteSummaryFiles ( int  n  )  [inline]

Definition at line 324 of file trace-projections.h.

References writeSummaryFiles.

void LogPool::setCompressed ( int  c  )  [inline]

Definition at line 326 of file trace-projections.h.

References compressed.

void LogPool::initializePhases (  )  [inline]

Definition at line 339 of file trace-projections.h.

References keepPhase, and numPhases.

Referenced by KMeansBOC::flushCheckDone().

Here is the caller graph for this function:

void LogPool::setAllPhases ( bool  val  )  [inline]

Definition at line 346 of file trace-projections.h.

References keepPhase, and numPhases.

Referenced by KMeansBOC::phaseDone().

Here is the caller graph for this function:

void LogPool::addPapi ( LONG_LONG_PAPI papVals  )  [inline]

Definition at line 358 of file trace-projections.h.

References LogEntry::addPapi(), numEntries, and pool.

Here is the call graph for this function:

void LogPool::updateStat ( unsigned char  type,
int  e,
double  cputime,
double  time,
double  stat,
int  pe 
)

void LogPool::setWriteData ( bool  b  )  [inline]

Definition at line 382 of file trace-projections.h.

References writeData.

void LogPool::setNewStartTime (  )  [inline]

Definition at line 387 of file trace-projections.h.

References globalStartTime, numEntries, and pool.


Friends And Related Function Documentation

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.


Field Documentation

Definition at line 255 of file trace-projections.h.

Referenced by LogPool(), setWriteData(), and ~LogPool().

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().

Definition at line 258 of file trace-projections.h.

Referenced by flushLogBuffer(), LogPool(), and KMeansBOC::startKMeansAnalysis().

Definition at line 259 of file trace-projections.h.

Referenced by LogPool(), and writeHeader().

Definition at line 260 of file trace-projections.h.

Referenced by createFile(), and LogPool().

Definition at line 262 of file trace-projections.h.

Referenced by closeLog(), createFile(), openLog(), setCompressed(), write(), and writeHeader().

unsigned int LogPool::poolSize [private]

unsigned int LogPool::numEntries [private]

unsigned int LogPool::lastCreationEvent [private]

Definition at line 268 of file trace-projections.h.

Referenced by createFile(), and setNumSubdirs().

LogEntry* LogPool::pool [private]

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]

Definition at line 271 of file trace-projections.h.

Referenced by write().

FILE* LogPool::stsfp [private]

Definition at line 272 of file trace-projections.h.

Referenced by createSts(), and writeSts().

FILE* LogPool::rcfp [private]

Definition at line 273 of file trace-projections.h.

Referenced by createRC(), and writeRC().

FILE* LogPool::statisfp [private]

Definition at line 274 of file trace-projections.h.

Referenced by writeStatis().

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]

Definition at line 277 of file trace-projections.h.

Referenced by createFile(), and LogPool().

gzFile LogPool::deltazfp [private]

Definition at line 279 of file trace-projections.h.

Referenced by write().

gzFile LogPool::zfp [private]

Definition at line 280 of file trace-projections.h.

Referenced by closeLog(), openLog(), write(), and writeHeader().

double LogPool::prevTime [private]

Definition at line 286 of file trace-projections.h.

Referenced by LogPool(), and write().

double LogPool::timeErr [private]

Definition at line 287 of file trace-projections.h.

Referenced by LogPool(), and write().

double LogPool::globalStartTime [private]

Definition at line 288 of file trace-projections.h.

Referenced by LogPool(), setNewStartTime(), and writeRC().

double LogPool::globalEndTime [private]

Definition at line 289 of file trace-projections.h.

Referenced by LogPool(), and writeRC().

Definition at line 295 of file trace-projections.h.

Referenced by add(), and writeStatis().

double LogPool::endComputationTime [private]

Definition at line 296 of file trace-projections.h.

Referenced by add(), and writeStatis().

double LogPool::statisLastTimer [private]

Definition at line 297 of file trace-projections.h.

Definition at line 298 of file trace-projections.h.

Referenced by add(), and LogPool().

double LogPool::statisLastIdleTimer [private]

Definition at line 299 of file trace-projections.h.

Referenced by add(), and LogPool().

double LogPool::statisLastPackTimer [private]

Definition at line 300 of file trace-projections.h.

Referenced by add(), and LogPool().

Definition at line 301 of file trace-projections.h.

Referenced by add(), and LogPool().

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().

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]

Definition at line 310 of file trace-projections.h.

Referenced by add(), and LogPool().

long long LogPool::statisTotalDequeueMsgs [private]

Definition at line 311 of file trace-projections.h.

Referenced by add(), and LogPool().

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]

Definition at line 314 of file trace-projections.h.

Referenced by add(), and LogPool().

long long LogPool::statisTotalMemFree [private]

Definition at line 315 of file trace-projections.h.

Referenced by add(), and LogPool().


The documentation for this class was generated from the following files:

Generated on Mon Sep 21 08:26:54 2020 for Charm++ by  doxygen 1.5.5