问题
I'd like to use the Instruments profiler on the Mac to profile Haskell code. However, Haskell isn't a supported language by Xcode/Instruments.
Is it possible to extend Instruments to support profiling in a new/unsupported language? What would be involved?
回答1:
Instruments is a front-end to DTrace. You can use DTrace hooks with GHC.
来源:https://stackoverflow.com/questions/13778669/is-it-possible-to-extend-the-instruments-profiler-on-mac-os-x-for-a-new-language