StartPapyrusFormProfile

From the CreationKit Wiki
Revision as of 15:02, 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 all Papyrus scripts on the specified form. Profiling information is logged to "<game>/Logs/Script/Profiling" folder.

Syntax

StartPapyrusFormProfile <form>
StartPFP <form>

Parameters

  • Form: The form to start profiling. All Papyrus scripts on that form are profiled.

Examples

StartPFP CWSiege

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.

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

See Also

Papyrus Version

StartObjectProfiling - Form