开发者

profilng for Data.HashMap

I'm using ghc 6.12.2 and the latest Data.HashMap 1.1.0 package, and while compiling with options

+RTS -prof -auto-all 

it does not work, and the message said that I didn't install the profiling package

How to install it ?

Thanks t开发者_StackOverflow中文版o reply


Can we assume you're using this hashmap? In general, you need to install with profiling: cabal install -p hashmap --reinstall. Most people enable profiling by default (edit your cabal config file and set library-profiling: True).


You're serious? GHC 5.2.2 is over 8 years old.

If you get the current Haskell Platform, including GHC 6.12.3, we can give relevant advice.

Edit: I see you fixed your post.


Are you using the options

+RTS -prof -auto-all

while building Data.HashMap, or are you just using

-prof -auto-all

?

The +RTS indicates you're giving flags to the haskell run-time system. You don't use it when you're compiling code, you use it while running a compiled executable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜