Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
message.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <cstdint>
7#include <string_view>
8
9namespace helios::profile {
10
11/**
12 * @brief Emits a timeline message on all active backends
13 * @param text The message text to emit
14 * @param color An optional color to associate with the message (default: 0)
15 */
16inline void Message(std::string_view text, uint32_t color = 0) noexcept {
17 Profiler::Instance().Message(text, color);
18}
19
20/**
21 * @brief Sets the name of the current thread on all active backends
22 * @param name The name to set for the current thread
23 */
24inline void SetThreadName(CStringView name) noexcept {
26}
27
28} // namespace helios::profile
static Profiler & Instance() noexcept
Returns the singleton profiler instance.
Definition profiler.hpp:403
void SetThreadName(CStringView name) noexcept
Dispatches a thread name event to all registered backends.
Definition profiler.cpp:231
void Message(std::string_view text, uint32_t color) noexcept
Dispatches a message event to all registered backends.
Definition profiler.cpp:221
void SetThreadName(CStringView name) noexcept
Sets the name of the current thread on all active backends.
Definition message.hpp:24
void Message(std::string_view text, uint32_t color=0) noexcept
Emits a timeline message on all active backends.
Definition message.hpp:16
BasicCStringView< char > CStringView
A view of a null-terminated C string.