EntropyEngine::Core::Debug::DebugScope
EntropyEngine::Core::Debug::DebugScope
Section titled “EntropyEngine::Core::Debug::DebugScope”RAII helper for debug scope tracking. More…
#include <DebugUtilities.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| ~DebugScope() | |
| DebugScope(std::string_view name) |
Detailed Description
Section titled “Detailed Description”class EntropyEngine::Core::Debug::DebugScope;RAII helper for debug scope tracking.
Logs entry and exit from code scopes. Provides execution flow visibility in debug logs. RAII ensures exit logging even when exceptions are thrown.
void complexAlgorithm() { DebugScope scope("ComplexAlgorithm"); // Logs: "Entering: ComplexAlgorithm"
if (someCondition) { DebugScope innerScope("ComplexAlgorithm::OptimizedPath"); // Logs: "Entering: ComplexAlgorithm::OptimizedPath" doOptimizedWork(); // Logs: "Leaving: ComplexAlgorithm::OptimizedPath" }
// Logs: "Leaving: ComplexAlgorithm"}Public Functions Documentation
Section titled “Public Functions Documentation”function ~DebugScope
Section titled “function ~DebugScope”inline ~DebugScope()function DebugScope
Section titled “function DebugScope”inline explicit DebugScope( std::string_view name)Updated on 2026-01-26 at 17:14:35 -0500