Remove bad info in the doc. Those attribute don't exist.
Remove the use of the deprecated string PROFILE_MODE.

And a few cases of DEBUG_MODE, not all of them.
Mark ProfileMode as deprecated at many places
Fix a link.
Add documentation of the new profiler.

fix gh-1420