Added ability to profile code execution for native targets.