Mod:Creation Kit/StartStackRootProfiling - Debug

Member of: Mod:Creation Kit/Debug Script

Starts profiling all stacks that start in the specified script (and optionally object). Calls into said script from outside scripts are NOT profiled.

Syntax
Function StartStackRootProfiling(string asScriptName, ScriptObject akObj = None) native global debugOnly

Parameters

 * asScriptName: The name of the script to start profiling.
 * akObj: The object to limit the profiling to. If None, will profile all instances of the script in the game.
 * Default: None

Return Value
None.

Examples
Debug.StartStackRootProfiling("MySlowScript") Debug.StartStackRootProfiling("MySlowScript", MyObj)
 * Starts profiling all stacks that start in MySlowScript
 * Starts profiling all stacks that start in MySlowScript, but only on MyObj