StartPapyrusScriptProfile

From the CreationKit Wiki
Revision as of 16:03, 22 February 2024 by Xieve (talk | contribs) (→‎Notes: Added note concerning a visualizer)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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