Module phases

Module phases 

Source
Expand description

Frame phases - named scopes within a frame for better diagnostics and profiling.

Phases divide a frame into logical sections (input, physics, render, etc.) without changing allocation semantics. They integrate with diagnostics and profiling for better visibility.

Structs§

Phase
A named phase within a frame.
PhaseGuard
RAII guard for a phase scope.
PhaseTracker
Tracks the current phase stack for a thread.

Functions§

begin_phase
Begin a named phase within the current frame.
current_phase
Get the current phase name.
end_phase
End the current phase.
is_in_phase
Check if currently in a phase.
record_phase_alloc
Record an allocation in the current phase.
reset_phases
Reset phases for a new frame.