Data.HashMap 分析

发布于 2024-09-27 09:09:01 字数 161 浏览 2 评论 0原文

我正在使用 ghc 6.12.2 和最新的 Data.HashMap 1.1.0 包,在使用选项编译时

+RTS -prof -auto-all 

它不起作用,并且消息说我没有安装分析包

如何安装?

谢谢回复

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 to reply

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

长梦不多时 2024-10-04 09:09:01

我们可以假设您正在使用此哈希映射吗?一般来说,您需要使用分析进行安装:cabal install -p hashmap --reinstall。大多数人默认启用分析(编辑 cabal config 文件并设置library-profiling: True)。

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).

二智少女猫性小仙女 2024-10-04 09:09:01

你是认真的吗? GHC 5.2.2 已有 8 多年历史。

如果您获得当前的 Haskell 平台,包括 GHC 6.12.3,我们可以提供相关建议。

编辑:我看到您修正了您的帖子。

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.

夜吻♂芭芘 2024-10-04 09:09:01

您在构建 Data.HashMap 时使用这些选项

+RTS -prof -auto-all

,还是只是使用

-prof -auto-all

+RTS 表示您正在向 haskell 运行时系统提供标志。编译代码时不会使用它,而是在运行已编译的可执行文件时使用它。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文