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