stats.AutoEnableNamedEventsWhenProfiling

stats.AutoEnableNamedEventsWhenProfiling

#Overview

name: stats.AutoEnableNamedEventsWhenProfiling

This variable is created as a Console Variable (cvar).

It is referenced in 2 C++ source files.

#Summary

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/Misc/CoreMisc.cpp:522

Scope: file

Source code excerpt:

static bool GAutoEnableNamedEventsWhenProfiling = false;
static FAutoConsoleVariableRef GCVarAutoEnableNamedEventsWhenProfiling(
	TEXT("stats.AutoEnableNamedEventsWhenProfiling"),
	GAutoEnableNamedEventsWhenProfiling,
	TEXT("If 1, toggles named events on when a profiler is detected and capturing. Toggles named events off if 0 or when profiling stops."),
	ECVF_Default
);

void FAutoNamedEventsToggler::Update(bool bIsProfiling)

#Loc: <Workspace>/Engine/Source/Runtime/Core/Public/Misc/CoreMisc.h:315

Scope: file

Source code excerpt:

 * Enables named events when profiling.
 * Increments/decrements GCycleStatsShouldEmitNamedEvents based on bIsProfiling.
 * Functionality is controlled by stats.AutoEnableNamedEventsWhenProfiling.
 */
class FAutoNamedEventsToggler
{
public:
	CORE_API void Update(bool bIsProfiling);

private:
	bool bSetNamedEventsEnabled = false;
};