[Haskell-cafe] ghc-prof-options and libraries on Hackage
Roman Cheplyaka
roma at ro-che.info
Mon Sep 22 07:25:14 UTC 2014
On 22/09/14 01:58, Ivan Lazar Miljenovic wrote:
> On 22 September 2014 06:52, Eric Seidel <eseidel at cs.ucsd.edu> wrote:
>>> To provide an example, I'm currently working on a little game engine that
>>> uses JuicyPixels to load images. I have a problem in my code that needs
>>> optimizing, but the current state of things results in profiles that are
>>> very difficult to work with. JuicyPixels specifies -auto-all in its cabal
>>> file, which means I have no alternative but to profile JuicyPixels code. In
>>> this scenario, the bottleneck is actually within my FRP game loop and
>>> nothing to do with image loading! As a result, the profiles are fairly
>>> useless to me.
>>
>> While in this case the extra profiling data may be useless, it seems to me that in general you won't know a priori. I would prefer to have as much data available as possible, and then filter it.
>
> Agreed: I've often had to do a "cabal unpack <foo>", edit the .cabal
> file to add the profiling options and re-install that package (which
> is admittedly easier/nicer now with sandboxes).
Why would you need to edit the cabal file? Are you aware of --ghc-options?
Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140922/96860a74/attachment.sig>
More information about the Haskell-Cafe
mailing list