ManaPlus
Data Structures | Namespaces | Macros | Functions | Variables
perfstat.h File Reference

(986a3bf)

#include "const/utils/perfstat.h"
#include "localconsts.h"

Go to the source code of this file.

Data Structures

struct  PerfStats
 

Namespaces

 Perf
 

Macros

#define PERF_STAT(n)    perfFrame[n] = tick_time
 
#define PERF_NEXTFRAME()    Perf::nextFrame()
 

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
 
size_t prevPerfFrameId
 
int * perfFrame
 
PerfStats worstFrameStats
 
int skipPerfFrames
 

Macro Definition Documentation

◆ PERF_NEXTFRAME

#define PERF_NEXTFRAME ( )     Perf::nextFrame()

Definition at line 62 of file perfstat.h.

◆ PERF_STAT

#define PERF_STAT (   n)     perfFrame[n] = tick_time

Definition at line 59 of file perfstat.h.

Variable Documentation

◆ perfFrame

int* perfFrame
extern

Definition at line 34 of file perfstat.cpp.

Referenced by Perf::nextFrame().

◆ perfFrameId

size_t perfFrameId
extern

Definition at line 32 of file perfstat.cpp.

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

◆ perfStats

PerfStats perfStats[PERFSTAT_MAX]
extern

Definition at line 30 of file perfstat.cpp.

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

◆ prevPerfFrameId

size_t prevPerfFrameId
extern

Definition at line 33 of file perfstat.cpp.

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

◆ skipPerfFrames

int skipPerfFrames
extern

Definition at line 37 of file perfstat.cpp.

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

◆ worstFrameStats

PerfStats worstFrameStats
extern

Definition at line 35 of file perfstat.cpp.

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