Added ability to enable HEAP and CPU profile of code
Merged the past changes with most recent one: profiler target has been added to easily include CPU/HEAP profile data