|
Unravel Engine C++ Reference
|
Double-buffered per-thread profiling state. One buffer is being written by the owning thread while the other is read by the main thread for display and aggregation. More...
#include <profiler.h>
Public Member Functions | |
| auto | write_buffer () -> thread_profile_buffer & |
| auto | read_buffer () -> thread_profile_buffer & |
| void | flip () |
Public Attributes | |
| std::array< thread_profile_buffer, 2 > | buffers {} |
| std::atomic< uint32_t > | write_idx {0} |
Double-buffered per-thread profiling state. One buffer is being written by the owning thread while the other is read by the main thread for display and aggregation.
Definition at line 179 of file profiler.h.
|
inline |
Definition at line 187 of file profiler.h.
|
inline |
Definition at line 185 of file profiler.h.
|
inline |
Definition at line 184 of file profiler.h.
| std::array<thread_profile_buffer, 2> unravel::thread_profile_data::buffers {} |
Definition at line 181 of file profiler.h.
| std::atomic<uint32_t> unravel::thread_profile_data::write_idx {0} |
Definition at line 182 of file profiler.h.