3 #include <Gui/RaGui.hpp>
8 #include <Core/Tasks/TaskQueue.hpp>
9 #include <Core/Utils/Log.hpp>
10 #include <Core/Utils/Timer.hpp>
11 #include <Engine/Rendering/Renderer.hpp>
18 Core::Utils::TimePoint frameStart;
19 Core::Utils::TimePoint tasksStart;
20 Core::Utils::TimePoint tasksEnd;
21 Core::Utils::TimePoint frameEnd;
23 std::vector<Core::TaskQueue::TimerData> taskData;
25 void print( std::ostream& ostream )
const;
29 class LoggableFrameTimerData
32 LoggableFrameTimerData( uint average );
33 virtual ~LoggableFrameTimerData() {}
34 void addFrame(
const FrameTimerData& data );
40 void printTimerData( el::base::type::ostream_t& os )
const;
41 void printAverageTimerData( el::base::type::ostream_t& os )
const;
44 mutable std::vector<FrameTimerData> m_frames;
This struct holds all timings for one frame of the engine.