Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
frame.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace helios::profile {
7
8/// @brief Marks the end of the current frame on all active backends.
9inline void FrameMark() noexcept {
11}
12
13/**
14 * @brief Marks the end of a named frame.
15 * @param name The name of the frame to mark
16 */
17inline void FrameMarkNamed(CStringView name) noexcept {
19}
20
21/**
22 * @brief Marks the start of a named frame region.
23 * @param name The name of the frame region to mark
24 */
25inline void FrameMarkStart(CStringView name) noexcept {
27}
28
29/**
30 * @brief Marks the end of a named frame region.
31 * @param name The name of the frame region to mark
32 */
33inline void FrameMarkEnd(CStringView name) noexcept {
35}
36
37} // namespace helios::profile
static Profiler & Instance() noexcept
Returns the singleton profiler instance.
Definition profiler.hpp:403
void FrameMark() noexcept
Dispatches a frame mark event to all registered backends.
Definition profiler.cpp:181
void FrameMarkEnd(CStringView name) noexcept
Dispatches a frame mark end event to all registered backends.
Definition profiler.cpp:211
void FrameMarkStart(CStringView name) noexcept
Dispatches a frame mark start event to all registered backends.
Definition profiler.cpp:201
void FrameMarkEnd(CStringView name) noexcept
Marks the end of a named frame region.
Definition frame.hpp:33
void FrameMarkStart(CStringView name) noexcept
Marks the start of a named frame region.
Definition frame.hpp:25
void FrameMark() noexcept
Marks the end of the current frame on all active backends.
Definition frame.hpp:9
void FrameMarkNamed(CStringView name) noexcept
Marks the end of a named frame.
Definition frame.hpp:17
BasicCStringView< char > CStringView
A view of a null-terminated C string.