PPL Logo

TraceUtilization Class Reference
[Charm++ Trace Module]

#include <trace-utilization.h>

Inheritance diagram for TraceUtilization:

Inheritance graph
[legend]
Collaboration diagram for TraceUtilization:

Collaboration graph
[legend]

Public Member Functions

 TraceUtilization ()
void initMem ()
 Initialize memory after the number of EPs has been determined.
void writeSts (void)
void creation (envelope *e, int epIdx, int num=1)
void beginExecute (envelope *e, void *obj)
void beginExecute (CmiObjId *tid)
void beginExecute (int event, int msgType, int ep, int srcPe, int mlen=0, CmiObjId *idx=NULL, void *obj=NULL)
void endExecute (void)
void beginIdle (double currT)
void endIdle (double currT)
void beginPack (void)
void endPack (void)
void beginUnpack (void)
void endUnpack (void)
void beginComputation (void)
void endComputation (void)
void traceClearEps ()
void traceWriteSts ()
void traceClose ()
void addEventType (int eventType)
int cpuTimeEntriesAvailable () const
int cpuTimeEntriesSentSoFar () const
void incrementNumCpuTimeEntriesSent (int n)
double sumUtilization (int startBin, int endBin)
void updateCpuTime (int epIdx, double startTime, double endTime)
void zeroIfNecessary (unsigned int interval)
 Zero out all entries from (lastBinUsed+1) up to and including interval.
UInt getEpInfoSize ()
double getCPUtime (unsigned int interval, unsigned int ep)
 for Summary-Detail
void addToCPUtime (unsigned int interval, unsigned int ep, double val)
double getUtilization (int interval, int ep)
compressedBuffer compressNRecentSumDetail (int desiredBinsToSend)
 Create a compressed buffer of the n most recent sum detail samples.

Data Fields

int execEp
unsigned int epInfoSize
double start
double * cpuTime
int lastBinUsed
unsigned int numBinsSent
unsigned int previouslySentBins

Detailed Description

Definition at line 207 of file trace-utilization.h.


Constructor & Destructor Documentation

TraceUtilization::TraceUtilization (  )  [inline]

Definition at line 219 of file trace-utilization.h.

References cpuTime, execEp, lastBinUsed, and numBinsSent.


Member Function Documentation

void TraceUtilization::initMem (  )  [inline]

Initialize memory after the number of EPs has been determined.

Definition at line 228 of file trace-utilization.h.

References _entryTable, Converse::CkMyPe(), cpuTime, epInfoSize, and writeSts().

Referenced by beginComputation().

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceUtilization::creation ( envelope e,
int  epIdx,
int  num = 1 
) [inline, virtual]

Reimplemented from Trace.

Definition at line 242 of file trace-utilization.h.

void TraceUtilization::beginIdle ( double  currT  )  [inline, virtual]

Reimplemented from Trace.

Definition at line 248 of file trace-utilization.h.

void TraceUtilization::endIdle ( double  currT  )  [inline, virtual]

Reimplemented from Trace.

Definition at line 249 of file trace-utilization.h.

void TraceUtilization::beginPack ( void   )  [inline, virtual]

Reimplemented from Trace.

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

void TraceUtilization::endPack ( void   )  [inline, virtual]

Reimplemented from Trace.

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

void TraceUtilization::beginUnpack ( void   )  [inline, virtual]

Reimplemented from Trace.

Definition at line 252 of file trace-utilization.h.

void TraceUtilization::endUnpack ( void   )  [inline, virtual]

Reimplemented from Trace.

Definition at line 253 of file trace-utilization.h.

void TraceUtilization::beginComputation ( void   )  [inline, virtual]

Reimplemented from Trace.

Definition at line 254 of file trace-utilization.h.

References initMem().

Here is the call graph for this function:

void TraceUtilization::endComputation ( void   )  [inline, virtual]

Reimplemented from Trace.

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

void TraceUtilization::traceClearEps ( void   )  [inline, virtual]

Reimplemented from Trace.

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

void TraceUtilization::traceWriteSts ( void   )  [inline, virtual]

Reimplemented from Trace.

Definition at line 257 of file trace-utilization.h.

void TraceUtilization::traceClose ( void   )  [inline, virtual]

Reimplemented from Trace.

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

int TraceUtilization::cpuTimeEntriesAvailable (  )  const [inline]

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

References lastBinUsed.

Referenced by TraceUtilizationBOC::collectSumDetailData().

Here is the caller graph for this function:

int TraceUtilization::cpuTimeEntriesSentSoFar (  )  const [inline]

Definition at line 263 of file trace-utilization.h.

References numBinsSent.

Referenced by TraceUtilizationBOC::collectSumDetailData(), and compressNRecentSumDetail().

Here is the caller graph for this function:

void TraceUtilization::incrementNumCpuTimeEntriesSent ( int  n  )  [inline]

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

References numBinsSent.

Referenced by compressNRecentSumDetail().

Here is the caller graph for this function:

void TraceUtilization::updateCpuTime ( int  epIdx,
double  startTime,
double  endTime 
) [inline]

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

References addToCPUtime(), epInfoSize, and int.

Referenced by endExecute().

Here is the call graph for this function:

Here is the caller graph for this function:

void TraceUtilization::zeroIfNecessary ( unsigned int  interval  )  [inline]

Zero out all entries from (lastBinUsed+1) up to and including interval.

Definition at line 294 of file trace-utilization.h.

References cpuTime, epInfoSize, and lastBinUsed.

Referenced by addToCPUtime().

Here is the caller graph for this function:

UInt TraceUtilization::getEpInfoSize (  )  [inline]

Definition at line 304 of file trace-utilization.h.

References epInfoSize.

Referenced by compressNRecentSumDetail(), and sumUtilization().

Here is the caller graph for this function:

double TraceUtilization::getCPUtime ( unsigned int  interval,
unsigned int  ep 
) [inline]

for Summary-Detail

Definition at line 307 of file trace-utilization.h.

References cpuTime, epInfoSize, and lastBinUsed.

Referenced by getUtilization().

Here is the caller graph for this function:

void TraceUtilization::addToCPUtime ( unsigned int  interval,
unsigned int  ep,
double  val 
) [inline]

Definition at line 317 of file trace-utilization.h.

References cpuTime, epInfoSize, and zeroIfNecessary().

Referenced by updateCpuTime().

Here is the call graph for this function:

Here is the caller graph for this function:

double TraceUtilization::getUtilization ( int  interval,
int  ep 
) [inline]

Definition at line 325 of file trace-utilization.h.

References getCPUtime().

Referenced by compressNRecentSumDetail().

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Definition at line 209 of file trace-utilization.h.

Referenced by beginExecute(), endExecute(), and TraceUtilization().

Definition at line 211 of file trace-utilization.h.

Referenced by beginExecute(), and endExecute().

Definition at line 216 of file trace-utilization.h.


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

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