我試圖剖析使用此處描述的過程Go程序:譜研究GO - 無符號
http://blog.golang.org/2011/06/profiling-go-programs.html 。
然而pprof
顯示輸出的地址而不是函數名稱:
(pprof) top10
Total: 2113 samples
298 14.1% 14.1% 298 14.1% 0000000000464d34
179 8.5% 22.6% 179 8.5% 0000000000418e83
157 7.4% 30.0% 157 7.4% 0000000000418e60
112 5.3% 35.3% 112 5.3% 0000000000403293
101 4.8% 40.1% 101 4.8% 0000000000464d4f
83 3.9% 44.0% 83 3.9% 000000000040329c
77 3.6% 47.7% 77 3.6% 0000000000418e7a
62 2.9% 50.6% 62 2.9% 0000000000456a38
37 1.8% 52.3% 37 1.8% 0000000000418e41
37 1.8% 54.1% 37 1.8% 0000000000435f57
有沒有人經歷過,發現一個解決?
有一個6prof
工具的提及here用於替代上述過程。有誰知道它是否仍然保持以及在哪裏可以找到它?
我在Win7 64上使用go1.0.2。
謝謝!
這個問題是不是與納米所提供的版本,而是用perl腳本和Windows終端之間的不兼容性。它可能與cygwin或類似的工作,但我沒有嘗試過。 我在這裏找出了自己的修復方法:http://exneehilo.blogspot.com.au/2012/07/profiling-go-with-pprof-under-windows.html – Mau 2012-07-28 15:50:43