Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
common.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <source_location>
5#include <string_view>
6
7namespace helios::profile {
8
9/// @brief Plot value format for timeline plots.
16
17/**
18 * @brief Immutable zone description for a single instrumentation site.
19 * @details Constructed at each instrumentation entry. Empty @p
20 * name means the backend should use @p loc.function_name().
21 */
22struct ZoneSpec {
23 std::string_view name;
24 std::source_location loc = std::source_location::current();
25 uint32_t color = 0;
26 bool active = true;
27 /// Optional stack-capture depth hint. Backends that do not support callstack
28 /// capture may ignore this field.
30};
31
32} // namespace helios::profile
PlotFormat
Plot value format for timeline plots.
Definition common.hpp:10
Immutable zone description for a single instrumentation site.
Definition common.hpp:22
std::string_view name
Definition common.hpp:23
std::source_location loc
Definition common.hpp:24