OnScriptProfilingEvent

Called when a script profiling event is fired.