LeaveProfilingEvent Function

Mark the end of the last profiling event. This must be called in the same stack frame as StartProfilingEvent(). Not doing so, or throwing errors, will make the resulting profile very wrong.

void LeaveProfilingEvent()