Added PROFILER_ON configure time variable.

Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>