簡體   English   中英

使用Cabal / ghc在Windows上對應用程序進行性能分析

[英]Profiling an application on Windows with cabal/ghc

我在Windows上進行配置時遇到了一個令人討厭的問題。 但首先,設置的上下文:

  • 我在〜/ dev / foo_shared中創建了一個共享沙箱: cabal sandbox init --sandbox=.
  • 我使用上面的共享沙箱在〜/ dev / foo中創建了一個沙箱: cabal sandbox init --sandbox=~/dev/foo_shared
  • 我安裝了所有啟用了概要分析的依賴項: cabal install --only-dependencies --enable-library-profiling --enable-executable-profiling
  • 我配置了foo軟件包,使其包含對RTS的分析: cabal configure --enable-profiling --enable-executable-profiling
  • 我試圖用cabal build

一切都正確建立,但沒有鏈接。 然后,我用cabal build -v3重建,這是鏈接器部分(最有趣的部分):

c:/program files/haskell platform/2014.2.0.0/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lHSrts_debug_p

我在IIRC上進行了搜索,這是因為我缺少GHC的RTS的分析庫。 我從未在Windows上找到它:(最后信息,我在Windows 10上,但不確定是否有幫助。

問題解決了。 問題是由於我在GHC的命令行界面上使用-debug 有人告訴我-debug-p不兼容,因此出現錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM