StopScriptProfiling - Debug: Difference between revisions
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
m (Convert source tags to syntaxhighlight) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:Non-delayed Native Function]] | |||
'''Member of:''' [[Debug Script]] | '''Member of:''' [[Debug Script]] | ||
| Line 6: | Line 7: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Function StopScriptProfiling(string asScriptName) native global | Function StopScriptProfiling(string asScriptName) native global | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 17: | Line 18: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Stops profiling "MySlowScript" | ; Stops profiling "MySlowScript" | ||
Debug.StopScriptProfiling("MySlowScript") | Debug.StopScriptProfiling("MySlowScript") | ||
</ | </syntaxhighlight> | ||
== Notes == | == Notes == | ||
Latest revision as of 20:23, 5 September 2026
Member of: Debug Script
Stops profiling a single Papyrus script. Child and parent scripts are not affected. If the script is not being profiled nothing will change.
Syntax[edit | edit source]
Function StopScriptProfiling(string asScriptName) native globalParameters[edit | edit source]
- asScriptName: The name of the script to stop profiling.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Stops profiling "MySlowScript"
Debug.StopScriptProfiling("MySlowScript")Notes[edit | edit source]
Profiling requires the "bEnableProfiling" flag in the "[Papyrus]" section of the ini file to be set to 1. Consoles will never profile in release final builds.