ReferenceDebug

debug.profileend

Ends the most recently opened MicroProfiler region. It does not report elapsed time as a return value.

Syntax

debug.profileend() -> ()

Description

This function is inherited from the selected engine. Apex does not implement a replacement when the engine refuses the operation.

Example

debug.profilebegin("Example")
local result = 1 + 2
debug.profileend()

These are Game executor contracts. Check build requirements and session lifetimes before using them.