PPL Logo

TraceLogger Class Reference

#include <traceCore.h>

Collaboration diagram for TraceLogger:

Collaboration graph
[legend]

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
TraceEntrypool
TraceEntrybuffer
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

Detailed Description

Definition at line 95 of file traceCore.h.


Constructor & Destructor Documentation

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

Here is the call graph for this function:


Member Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceLogger::writeBinary ( void   ) 

Definition at line 437 of file traceCore.C.

Referenced by add(), and ~TraceLogger().

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceLogger::initlogfiles (  ) 

Definition at line 333 of file traceCore.C.

References closeLogFiles(), and openLogFiles().

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceLogger::closeLogFiles (  )  [private]

Definition at line 515 of file traceCore.C.

References fptrs, and numLangs.

Referenced by initlogfiles(), and write().

Here is the caller graph for this function:

void TraceLogger::verifyFptrs (  )  [private]

Definition at line 383 of file traceCore.C.

References CmiPrintf(), fptrs, and numLangs.

Referenced by openLogFiles(), and write().

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceLogger::flushLogFiles (  )  [private]

Definition at line 526 of file traceCore.C.

References fptrs, and numLangs.

Referenced by write().

Here is the caller graph for this function:


Field Documentation

Definition at line 98 of file traceCore.h.

Referenced by add(), and TraceLogger().

Definition at line 99 of file traceCore.h.

Referenced by add(), TraceLogger(), and write().

Definition at line 100 of file traceCore.h.

Referenced by add(), TraceLogger(), and write().

Definition at line 101 of file traceCore.h.

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 108 of file traceCore.h.

Referenced by add(), RegisterLanguage(), TraceLogger(), and ~TraceLogger().

Definition at line 110 of file traceCore.h.

Referenced by write(), and ~TraceLogger().

Definition at line 111 of file traceCore.h.

Referenced by write().

Definition at line 111 of file traceCore.h.

Referenced by write().

Definition at line 112 of file traceCore.h.

Referenced by add(), and TraceLogger().

char* TraceLogger::pgm [private]

Definition at line 134 of file traceCore.h.

Referenced by RegisterLanguage(), and TraceLogger().


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

Generated on Mon Sep 21 08:31:16 2020 for Charm++ by  doxygen 1.5.5