au.Metasound.Profiling.RemoveNodes

au.Metasound.Profiling.RemoveNodes

#Overview

name: au.Metasound.Profiling.RemoveNodes

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

It is referenced in 1 C++ source file.

#Summary

#References in C++ code

#Callsites

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

#Loc: <Workspace>/Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Private/MetasoundProfilingOperator.cpp:49

Scope (from outer to inner):

file
namespace    Metasound
namespace    Profiling
function     void Init

Source code excerpt:

			);
			IConsoleManager::Get().RegisterConsoleCommand(
				TEXT("au.Metasound.Profiling.RemoveNodes"),
				TEXT("Removes the specified node class name(s) (or ALL if no names are provided) from the list of node types that will be profiled and visible in Insights."),
				FConsoleCommandWithArgsDelegate::CreateLambda([](const TArray<FString>& Args)
					{
						if (Args.Num() == 0)
						{
							ProfilingNodeFilter.Empty();
						}
						else
						{
							for (const FString& NodeName : Args)
							{
								ProfilingNodeFilter.Remove(NodeName);
							}
						}
					}),
				ECVF_Default
			);

		}

		bool OperatorShouldBeProfiled(const FNodeClassMetadata& NodeMetadata)
		{
			return ProfilingNodeFilter.IsEmpty() || ProfilingNodeFilter.Contains(NodeMetadata.ClassName.GetName().ToString());
		}