ludus::foundation::profiling::ScopedZone¶
Ludus Wiki · API overview · Browse API
Class
RAII scope. ctor emits Begin, dtor emits End (paired within the thread — C5).
Non-template, trivially small. The End reuses the site id so the dtor does not re-read the descriptor. Guaranteed to fire on early return (there are no exceptions under -fno-exceptions). Copy/move deleted so an event is never emitted twice or dropped.
Declared in modules/foundation/profiling/include/ludus/foundation/profiling/profiling.hpp
#include <ludus/foundation/profiling/profiling.hpp>
class ludus::foundation::profiling::ScopedZone
Methods¶
ScopedZone¶
explicit LUDUS_INLINE ludus::foundation::profiling::ScopedZone::ScopedZone(const ZoneDescriptor &descriptor) noexcept
Related types: ZoneDescriptor
Declared in modules/foundation/profiling/include/ludus/foundation/profiling/profiling.hpp
~ScopedZone¶
LUDUS_INLINE ludus::foundation::profiling::ScopedZone::~ScopedZone() noexcept
Declared in modules/foundation/profiling/include/ludus/foundation/profiling/profiling.hpp
ScopedZone¶
ludus::foundation::profiling::ScopedZone::ScopedZone(const ScopedZone &)=delete
Declared in modules/foundation/profiling/include/ludus/foundation/profiling/profiling.hpp
operator=¶
ScopedZone & ludus::foundation::profiling::ScopedZone::operator=(const ScopedZone &)=delete
Related types: ScopedZone
Declared in modules/foundation/profiling/include/ludus/foundation/profiling/profiling.hpp
ScopedZone¶
ludus::foundation::profiling::ScopedZone::ScopedZone(ScopedZone &&)=delete
Declared in modules/foundation/profiling/include/ludus/foundation/profiling/profiling.hpp
operator=¶
ScopedZone & ludus::foundation::profiling::ScopedZone::operator=(ScopedZone &&)=delete
Related types: ScopedZone
Declared in modules/foundation/profiling/include/ludus/foundation/profiling/profiling.hpp