/Engine/Source/Runtime/Core/Public/Misc/CoreMisc.h
Enables named events when profiling. Increments/decrements GCycleStatsShouldEmitNamedEvents based on bIsProfiling. Functionality is controlled by stats.AutoEnableNamedEventsWhenProfiling.
class FAutoNamedEventsToggler