|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
#include <Benchmark.hpp>
Public Member Functions | |
| Benchmark ()=default | |
| ~Benchmark () | |
| void | Initialize (RenderEngine::Renderer *renderer) |
| bool | IsRecording () const |
| void | RegisterMetric (const std::string &name, std::function< float()> getter) |
| Register a custom metric (e.g. render distance from Game). | |
| void | Tick (float deltaTime) |
| Call once per frame from the main loop. | |
| void | ToggleRecording () |
| Toggle recording on/off (F12). | |
| void | UnregisterMetric (const std::string &name) |
Records per-frame performance data to a CSV session file while recording is active.
Definition at line 23 of file Benchmark.hpp.
|
default |
| Benchmark::~Benchmark | ( | ) |
Definition at line 24 of file Benchmark.cpp.
| void Benchmark::Initialize | ( | RenderEngine::Renderer * | renderer | ) |
Definition at line 29 of file Benchmark.cpp.
|
inline |
Definition at line 39 of file Benchmark.hpp.
| void Benchmark::RegisterMetric | ( | const std::string & | name, |
| std::function< float()> | getter ) |
Register a custom metric (e.g. render distance from Game).
Definition at line 33 of file Benchmark.cpp.
| void Benchmark::Tick | ( | float | deltaTime | ) |
Call once per frame from the main loop.
Definition at line 50 of file Benchmark.cpp.
| void Benchmark::ToggleRecording | ( | ) |
Toggle recording on/off (F12).
Definition at line 55 of file Benchmark.cpp.
| void Benchmark::UnregisterMetric | ( | const std::string & | name | ) |
Definition at line 43 of file Benchmark.cpp.