darklua
DocumentationTry itGitHub

remove_debug_profiling


Added in 0.12.0

Parameters


NameTypeDescriptionDefault
preserve_arguments_side_effects

boolean

Defines how darklua handle arguments passed to the functions. If true, darklua will inspect each argument and preserve any potential side effects. When false, darklua will not perform any verification and simply erase any arguments passed.

true

This rule removes all function calls to debug.profilebegin and debug.profileend.

Examples


debug.profilebegin('function name')
performUpdate()
debug.profileend()
InputOutput
debug.profilebegin('function name')
performUpdate()
debug.profileend()
do end
performUpdate()
do end