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 setCompressed (int c)
void createFile (char *fix="")
void createSts (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 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 (int numPap, int *pap_ids, LONG_LONG_PAPI *papVals)
void addUserSupplied (int data)
 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 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 ()

Private Member Functions

void writeHeader ()

Private Attributes

bool writeData
unsigned int poolSize
unsigned int numEntries
LogEntrypool
FILE * fp
FILE * deltafp
FILE * stsfp
FILE * rcfp
char * fname
char * dfname
char * pgmname
int binary
gzFile deltazfp
gzFile zfp
int compressed
double prevTime
double timeErr
double globalEndTime
int headerWritten
bool fileCreated

Friends

class TraceProjections
class TraceProjectionsBOC

Detailed Description

log pool in trace projection

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


Member Function Documentation

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

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

References binary.

Referenced by TraceProjections::TraceProjections().

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

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

References c, and compressed.

Referenced by TraceProjections::TraceProjections().

void LogPool::addPapi ( int  numPap,
int pap_ids,
LONG_LONG_PAPI papVals 
) [inline]

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

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

Referenced by TraceProjections::beginExecute(), and TraceProjections::endExecute().


Friends And Related Function Documentation

friend class TraceProjections [friend]

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

friend class TraceProjectionsBOC [friend]

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


Field Documentation

bool LogPool::writeData [private]

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

Referenced by LogPool(), TraceProjectionsBOC::setOutliers(), and ~LogPool().

unsigned int LogPool::poolSize [private]

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

Referenced by add(), addCreationMulticast(), addMemoryUsage(), and LogPool().

unsigned int LogPool::numEntries [private]

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

Referenced by add(), addCreationMulticast(), addMemoryUsage(), addPapi(), addUserSupplied(), TraceProjections::creationDone(), flushLogBuffer(), LogPool(), TraceProjectionsBOC::startOutlierAnalysis(), write(), and writeHeader().

LogEntry* LogPool::pool [private]

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

Referenced by add(), addCreationMulticast(), addMemoryUsage(), addPapi(), addUserSupplied(), TraceProjections::creationDone(), flushLogBuffer(), LogPool(), TraceProjectionsBOC::startOutlierAnalysis(), write(), and ~LogPool().

FILE* LogPool::fp [private]

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

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

FILE* LogPool::deltafp [private]

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

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

FILE* LogPool::stsfp [private]

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

Referenced by createSts(), and writeSts().

FILE* LogPool::rcfp [private]

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

Referenced by createRC(), and writeRC().

char* LogPool::fname [private]

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

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

char* LogPool::dfname [private]

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

Referenced by createFile(), and openLog().

char* LogPool::pgmname [private]

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

Referenced by createFile(), and LogPool().

int LogPool::binary [private]

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

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

gzFile LogPool::deltazfp [private]

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

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

gzFile LogPool::zfp [private]

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

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

int LogPool::compressed [private]

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

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

double LogPool::prevTime [private]

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

Referenced by LogPool(), and write().

double LogPool::timeErr [private]

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

Referenced by LogPool(), and write().

double LogPool::globalEndTime [private]

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

Referenced by LogPool(), and writeRC().

int LogPool::headerWritten [private]

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

Referenced by LogPool(), and writeHeader().

bool LogPool::fileCreated [private]

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

Referenced by createFile(), and LogPool().


The documentation for this class was generated from the following files:
Generated on Sun Jun 29 13:34:06 2008 for Charm++ by  doxygen 1.5.1