我正在使用 ghc 6.12.2 和最新的 Data.HashMap 1.1.0 包,并在使用选项进行编译时
+RTS -prof -auto-all
它不起作用,并且消息说我没有安装分析包
如何安装它?
感谢回复
我们可以假设您正在使用这个 hashmap吗?通常,您需要使用 profiling 进行安装:cabal install -p hashmap --reinstall
. 大多数人默认启用分析(编辑您的 cabalconfig
文件并设置library-profiling: True
)。
你在使用选项吗
+RTS -prof -auto-all
在构建 Data.HashMap 时,或者您只是在使用
-prof -auto-all
?
+RTS
表示您正在向 haskell 运行时系统提供标志。在编译代码时不要使用它,而是在运行已编译的可执行文件时使用它。