the impossible happened
Simon Marlow
simonmar at microsoft.com
Mon May 23 18:28:21 EDT 2005
On 23 May 2005 18:36, Bulat Ziganshin wrote:
>> It's all very like cost-centre stacks, which is why GHC provides the
>> -xc option when you are profiling. I think that give you what you
>> want --- but you have to compile your program profiled.
>
> i never used -prof, so i can't comment this. btw, -prof is not
> compatible with -threaded, at least in my distribution (i guess that
> it may be just lack of appropriately compiled libraries)
-prof and -threaded work fine together, but you do need the profiling
libraries installed. You don't need special -prof/-threaded libraries:
only the RTS changes when you specify -threaded.
Try -prof and +RTS -xc, you might be pleasantly surprised (or
unpleasantly surprised: it doesn't *always* work).
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list