Removing displays_errors on Profiling tool if _PS_MODE_DEV_ is disabled

 - Profiling displays errors only if _PS_MODE_DEV_ is enabled (Previously, it override error managment)
 - Removing obsolete functions
Merge pull request #2021 from arnolem/patch-2

// Removing displays_errors on Profiling tool if _PS_MODE_DEV_ is disabled