#include <trace-summary.h>
Public Member Functions | |
PhaseTable (int n) | |
~PhaseTable () | |
int | numPhasesCalled () |
void | startPhase (int p) |
start a phase. | |
void | setEp (int epidx, double time) |
void | write (FILE *fp) |
Private Attributes | |
PhaseEntry ** | phases |
int | numPhase |
phase table size | |
int | cur_phase |
current phase | |
int | phaseCalled |
total number of phases |
Definition at line 88 of file trace-summary.h.
PhaseTable::PhaseTable | ( | int | n | ) | [inline] |
PhaseTable::~PhaseTable | ( | ) | [inline] |
int PhaseTable::numPhasesCalled | ( | ) | [inline] |
Definition at line 106 of file trace-summary.h.
References phaseCalled.
Referenced by SumLogPool::write().
void PhaseTable::startPhase | ( | int | p | ) | [inline] |
start a phase.
If new, create a new PhaseEntry
Definition at line 110 of file trace-summary.h.
References CmiAbort(), cur_phase, numPhase, phaseCalled, and phases.
Referenced by SumLogPool::startPhase().
void PhaseTable::setEp | ( | int | epidx, | |
double | time | |||
) | [inline] |
Definition at line 119 of file trace-summary.h.
References CmiAbort(), cur_phase, phases, and PhaseEntry::setEp().
Referenced by SumLogPool::setEp().
void PhaseTable::write | ( | FILE * | fp | ) | [inline] |
Definition at line 124 of file trace-summary.h.
References numPhase, phases, and PhaseEntry::write().
Referenced by SumLogPool::write().
PhaseEntry** PhaseTable::phases [private] |
Definition at line 90 of file trace-summary.h.
Referenced by PhaseTable(), setEp(), startPhase(), write(), and ~PhaseTable().
int PhaseTable::numPhase [private] |
phase table size
Definition at line 91 of file trace-summary.h.
Referenced by startPhase(), write(), and ~PhaseTable().
int PhaseTable::cur_phase [private] |
current phase
Definition at line 92 of file trace-summary.h.
Referenced by PhaseTable(), setEp(), and startPhase().
int PhaseTable::phaseCalled [private] |
total number of phases
Definition at line 93 of file trace-summary.h.
Referenced by numPhasesCalled(), PhaseTable(), and startPhase().