add support for gprof
Merge pull request #2249 from WalterBright/add-PROFILE

add support for gprof