ManaPlus
|
Functions | |
void | init () |
void | nextFrame () |
void | selectWorstFrame () |
int | getTime (const size_t frameId, const size_t counterId) |
int | getWorstTime (const size_t counterId) |
int Perf::getTime | ( | const size_t | frameId, |
const size_t | counterId | ||
) |
Definition at line 111 of file perfstat.cpp.
References perfStats, and PerfStats::ticks.
Referenced by StatDebugTab::action(), StatDebugTab::logic(), and selectWorstFrame().
int Perf::getWorstTime | ( | const size_t | counterId | ) |
Definition at line 122 of file perfstat.cpp.
References PerfStats::ticks, and worstFrameStats.
Referenced by StatDebugTab::action(), and StatDebugTab::logic().
void Perf::init | ( | ) |
Definition at line 41 of file perfstat.cpp.
References Logger::log(), logger, perfFrameId, PERFSTAT_LAST_STAT, PERFSTAT_MAX, perfStats, prevPerfFrameId, skipPerfFrames, PerfStats::ticks, worstFrameStats, and worstTime.
Referenced by StatDebugTab::action(), and Game::changeMap().
void Perf::nextFrame | ( | ) |
Definition at line 62 of file perfstat.cpp.
References perfFrame, perfFrameId, PERFSTAT_MAX, perfStats, prevPerfFrameId, selectWorstFrame(), skipPerfFrames, and PerfStats::ticks.
void Perf::selectWorstFrame | ( | ) |
Definition at line 84 of file perfstat.cpp.
References CAST_S32, getTime(), Logger::log(), logger, perfFrameId, PERFSTAT_FPS_STAT, PERFSTAT_MAX, perfStats, PerfStats::ticks, worstFrameStats, and worstTime.
Referenced by nextFrame().