#include <trace-utilization.h>
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 |
Definition at line 207 of file trace-utilization.h.
TraceUtilization::TraceUtilization | ( | ) | [inline] |
Definition at line 219 of file trace-utilization.h.
References cpuTime, execEp, lastBinUsed, and numBinsSent.
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().
void TraceUtilization::beginIdle | ( | double | currT | ) | [inline, virtual] |
void TraceUtilization::endIdle | ( | double | currT | ) | [inline, virtual] |
void TraceUtilization::beginPack | ( | void | ) | [inline, virtual] |
void TraceUtilization::endPack | ( | void | ) | [inline, virtual] |
void TraceUtilization::beginUnpack | ( | void | ) | [inline, virtual] |
void TraceUtilization::endUnpack | ( | void | ) | [inline, virtual] |
void TraceUtilization::beginComputation | ( | void | ) | [inline, virtual] |
Reimplemented from Trace.
Definition at line 254 of file trace-utilization.h.
References initMem().
void TraceUtilization::endComputation | ( | void | ) | [inline, virtual] |
void TraceUtilization::traceClearEps | ( | void | ) | [inline, virtual] |
void TraceUtilization::traceWriteSts | ( | void | ) | [inline, virtual] |
void TraceUtilization::traceClose | ( | void | ) | [inline, virtual] |
int TraceUtilization::cpuTimeEntriesAvailable | ( | ) | const [inline] |
Definition at line 262 of file trace-utilization.h.
References lastBinUsed.
Referenced by TraceUtilizationBOC::collectSumDetailData().
int TraceUtilization::cpuTimeEntriesSentSoFar | ( | ) | const [inline] |
Definition at line 263 of file trace-utilization.h.
References numBinsSent.
Referenced by TraceUtilizationBOC::collectSumDetailData(), and compressNRecentSumDetail().
void TraceUtilization::incrementNumCpuTimeEntriesSent | ( | int | n | ) | [inline] |
Definition at line 264 of file trace-utilization.h.
References numBinsSent.
Referenced by compressNRecentSumDetail().
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().
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().
UInt TraceUtilization::getEpInfoSize | ( | ) | [inline] |
Definition at line 304 of file trace-utilization.h.
References epInfoSize.
Referenced by compressNRecentSumDetail(), and sumUtilization().
for Summary-Detail
Definition at line 307 of file trace-utilization.h.
References cpuTime, epInfoSize, and lastBinUsed.
Referenced by getUtilization().
Definition at line 317 of file trace-utilization.h.
References cpuTime, epInfoSize, and zeroIfNecessary().
Referenced by updateCpuTime().
Definition at line 325 of file trace-utilization.h.
References getCPUtime().
Referenced by compressNRecentSumDetail().
Definition at line 209 of file trace-utilization.h.
Referenced by beginExecute(), endExecute(), and TraceUtilization().
unsigned int TraceUtilization::epInfoSize |
Definition at line 210 of file trace-utilization.h.
Referenced by addToCPUtime(), getCPUtime(), getEpInfoSize(), initMem(), sumUtilization(), updateCpuTime(), and zeroIfNecessary().
double TraceUtilization::start |
double* TraceUtilization::cpuTime |
Definition at line 213 of file trace-utilization.h.
Referenced by addToCPUtime(), getCPUtime(), initMem(), sumUtilization(), TraceUtilization(), and zeroIfNecessary().
Definition at line 214 of file trace-utilization.h.
Referenced by cpuTimeEntriesAvailable(), getCPUtime(), TraceUtilization(), and zeroIfNecessary().
unsigned int TraceUtilization::numBinsSent |
Definition at line 215 of file trace-utilization.h.
Referenced by cpuTimeEntriesSentSoFar(), incrementNumCpuTimeEntriesSent(), and TraceUtilization().
unsigned int TraceUtilization::previouslySentBins |
Definition at line 216 of file trace-utilization.h.