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?
Instruments is a front-end to DTrace. You can use DTrace hooks with GHC.