Difference between revisions of "StartPapyrusScriptProfile"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Scornett-Bot
m (Script running global find and replace: Category:Console Commands for Category:Console Functions)
 
(→‎Notes: Added note concerning a visualizer)
 
Line 13: Line 13:
==Notes==
==Notes==
Profiling must be turned on or the command will fail. To turn profiling on, set "bEnableProfiling" in the "[Papyrus]" section of your ini file to 1.
Profiling must be turned on or the command will fail. To turn profiling on, set "bEnableProfiling" in the "[Papyrus]" section of your ini file to 1.
The flamegraph visualizer [https://speedscope.app/ speedscope] supports all kinds of profiles that Skyrim produces, including those produced by this function.


==See Also==
==See Also==

Latest revision as of 15:03, 22 February 2024

Starts profiling the specified Papyrus script. Profiling information is logged to "<game>/Logs/Script/Profiling" folder.

Syntax[edit | edit source]

StartPapyrusScriptProfile <script>
StartPSP <script>

Parameters[edit | edit source]

  • Script: The name of the script to start profiling. Child and parent scripts aren't profiled - you'll have to start profiling for them separately.

Examples[edit | edit source]

StartPSP CWSiegeScript

Notes[edit | edit source]

Profiling must be turned on or the command will fail. To turn profiling on, set "bEnableProfiling" in the "[Papyrus]" section of your ini file to 1.

The flamegraph visualizer speedscope supports all kinds of profiles that Skyrim produces, including those produced by this function.

See Also[edit | edit source]

Papyrus Version[edit | edit source]

StartScriptProfiling - Debug