added the new collect flag for the profiler
Merge pull request #2565 from fabpot/profiler-activation

added the new collect flag for the profiler