ManaPlus
Namespaces | Functions | Variables
perfstat.cpp File Reference

(986a3bf)

#include "utils/perfstat.h"
#include "utils/cast.h"
#include "logger.h"
#include "debug.h"

Go to the source code of this file.

Namespaces

 Perf
 

Functions

void Perf::init ()
 
void Perf::nextFrame ()
 
void Perf::selectWorstFrame ()
 
int Perf::getTime (const size_t frameId, const size_t counterId)
 
int Perf::getWorstTime (const size_t counterId)
 

Variables

PerfStats perfStats [PERFSTAT_MAX]
 
size_t perfFrameId = 0
 
size_t prevPerfFrameId = PERFSTAT_MAX
 
int * perfFrame = &perfStats[perfFrameId].ticks[0]
 
PerfStats worstFrameStats
 
int worstTime = -1
 
int skipPerfFrames = -1
 

Variable Documentation

◆ perfFrame

int* perfFrame = &perfStats[perfFrameId].ticks[0]

Definition at line 34 of file perfstat.cpp.

Referenced by Perf::nextFrame().

◆ perfFrameId

size_t perfFrameId = 0

Definition at line 32 of file perfstat.cpp.

Referenced by Perf::init(), Perf::nextFrame(), and Perf::selectWorstFrame().

◆ perfStats

PerfStats perfStats[PERFSTAT_MAX]

Definition at line 30 of file perfstat.cpp.

Referenced by Perf::getTime(), Perf::init(), Perf::nextFrame(), and Perf::selectWorstFrame().

◆ prevPerfFrameId

size_t prevPerfFrameId = PERFSTAT_MAX

Definition at line 33 of file perfstat.cpp.

Referenced by Perf::init(), StatDebugTab::logic(), and Perf::nextFrame().

◆ skipPerfFrames

int skipPerfFrames = -1

Definition at line 37 of file perfstat.cpp.

Referenced by Game::changeMap(), Perf::init(), and Perf::nextFrame().

◆ worstFrameStats

PerfStats worstFrameStats

Definition at line 35 of file perfstat.cpp.

Referenced by Perf::getWorstTime(), Perf::init(), and Perf::selectWorstFrame().

◆ worstTime

int worstTime = -1

Definition at line 36 of file perfstat.cpp.

Referenced by Perf::init(), and Perf::selectWorstFrame().