This procedure disables and enables profiling of a single thread specified by the session number. This number is returned by the _iv_logged_users system query or user the -1 constant for the current thread (i.e. the thread executing this procedure).
The information whether the separate profiling is set for a certain thread is returned by the _iv_logged users system query.