8
是否可以在不安装分析库的情况下对Haskell程序进行时间分析?是否有可能在没有prof库的情况下剖析Haskell程序?
当我通过-prof
选项GHC,我总能得到象这样的错误之一:
src/MyPKG/FooBlah.lhs:7:7:
Could not find module `Data.Time.Calendar':
Perhaps you haven't installed the profiling libraries for package `time-1.1.4'?
Use -v to see a list of the files searched for.
我知道解决的办法是与图书馆的阴谋轮廓版本安装,但有时这是一个痛苦在屁股(对不起的语言抱歉)。
我认为应该有可能对我的程序进行分析,而没有符号的呼叫应该在输出中显示为????
或类似内容。
相关[问题](http://stackoverflow.com/questions/1704421/cabal-not-installing-dependencies-when-needing-profiling-libraries)。 – danr 2012-01-31 18:36:25
相关* [回答。](http://stackoverflow.com/questions/9077799/a-change-in-my-library-made-it-much-slower-profiling-isnt-helping-me-what-mig/ 9084537#9084537)* – 2012-01-31 20:46:37
“我认为应该有可能” - 有可能... GHC毕竟是开源的。 :) – 2012-01-31 21:07:11