|
Unravel Engine C++ Reference
|
#include <engine/engine_export.h>#include <chrono>#include <cstdint>#include <map>#include <array>#include <type_traits>#include <concepts>#include <hpp/string_view.hpp>Go to the source code of this file.
Classes | |
| class | unravel::performance_profiler |
| struct | unravel::performance_profiler::per_frame_data |
| class | unravel::scope_perf_timer |
Namespaces | |
| namespace | unravel |
Concepts | |
| concept | unravel::string_literal |
| Concept to ensure only string literals are accepted. | |
Macros | |
| #define | APP_SCOPE_PERF_CONCATENATE_DETAIL(x, y) |
| #define | APP_SCOPE_PERF_CONCATENATE(x, y) |
| #define | APP_SCOPE_PERF_UNIQUE_VAR(prefix) |
| #define | APP_SCOPE_PERF(name) |
| Create a scoped performance timer that only accepts string literals. | |
Functions | |
| auto | unravel::get_app_profiler () -> performance_profiler * |
| #define APP_SCOPE_PERF | ( | name | ) |
Create a scoped performance timer that only accepts string literals.
This macro creates a performance timer that automatically measures the scope duration. Only string literals are accepted to ensure memory safety since names are stored as non-owning pointers.
| name | String literal name for the performance measurement |
Example usage:
Definition at line 160 of file profiler.h.
Definition at line 139 of file profiler.h.
Definition at line 138 of file profiler.h.
| #define APP_SCOPE_PERF_UNIQUE_VAR | ( | prefix | ) |
Definition at line 142 of file profiler.h.