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 setCompressed (int c)
void createFile (const char *fix="")
void createSts (const char *fix="")
void createTopo (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 writeTopo ()
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)
void addPapi (LONG_LONG_PAPI *papVals)
void addUserSupplied (int data)
 add a record for a user supplied piece of data
void addUserSuppliedNote (char *note)
 add a record for a user supplied piece of data
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, 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
unsigned int poolSize
unsigned int numEntries
LogEntrypool
FILE * fp
FILE * deltafp
FILE * stsfp
FILE * rcfp
FILE * topofp
char * fname
char * dfname
char * pgmname
int binary
int nSubdirs
gzFile deltazfp
gzFile zfp
int compressed
double prevTime
double timeErr
double globalStartTime
double globalEndTime
int numPhases
bool hasFlushed
boolkeepPhase
int headerWritten
bool fileCreated

Friends

class TraceProjections
class TraceProjectionsBOC
class KMeansBOC
class controlPointManager

Detailed Description

log pool in trace projection

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


Member Function Documentation

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

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

References binary.

Referenced by TraceProjections::TraceProjections().

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

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

References nSubdirs.

Referenced by TraceProjections::TraceProjections().

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

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

References compressed.

Referenced by TraceProjections::TraceProjections().

void LogPool::initializePhases (  )  [inline]

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

References keepPhase, and numPhases.

Referenced by KMeansBOC::flushCheckDone().

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

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

References keepPhase, and numPhases.

Referenced by KMeansBOC::phaseDone().

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

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

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

References writeData.

Referenced by TraceProjections::setWriteData().

void LogPool::setNewStartTime (  )  [inline]

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

References globalStartTime, numEntries, and pool.


Friends And Related Function Documentation

friend class TraceProjections [friend]

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

friend class TraceProjectionsBOC [friend]

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

friend class KMeansBOC [friend]

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

friend class controlPointManager [friend]

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


Field Documentation

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

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

unsigned int LogPool::poolSize [private]

unsigned int LogPool::numEntries [private]

LogEntry* LogPool::pool [private]

FILE* LogPool::fp [private]

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

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

FILE* LogPool::deltafp [private]

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

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

FILE* LogPool::stsfp [private]

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

Referenced by createSts(), createTopo(), and writeSts().

FILE* LogPool::rcfp [private]

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

Referenced by createRC(), and writeRC().

FILE* LogPool::topofp [private]

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

Referenced by createTopo(), and writeTopo().

char* LogPool::fname [private]

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

Referenced by createFile(), createRC(), createSts(), createTopo(), openLog(), and ~LogPool().

char* LogPool::dfname [private]

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

Referenced by createFile(), and openLog().

char* LogPool::pgmname [private]

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

Referenced by createFile(), and LogPool().

int LogPool::binary [private]

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

Referenced by setBinary(), write(), and writeHeader().

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

Referenced by createFile(), and setNumSubdirs().

gzFile LogPool::deltazfp [private]

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

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

gzFile LogPool::zfp [private]

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

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

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

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

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

Referenced by LogPool(), and write().

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

Referenced by LogPool(), and write().

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

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

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

Referenced by LogPool(), and writeRC().

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

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

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

Referenced by LogPool(), and writeHeader().

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

Referenced by createFile(), and LogPool().


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

Generated on Fri May 25 08:04:08 2012 for Charm++ by  doxygen 1.5.5