我正在尝试学习使用 Go 的分析功能。考虑到这一点,我创建了这个简单的应用程序: https: //github.com/Matias-Barrios/countWords ,它只是计算给定txt文件 的单词出现次数。
问题是,创建.cpu.prof文件后我看不到任何内容。一旦我打开文件,我就会收到此错误:
(0) matias #> go tool pprof .cpu.prof File: main Type: cpu Time: Oct 9, 2019 at 12:38am (-03) Duration: 201.31ms, Total samples = 0 No samples were found with the default sample value type. Try "sample_index" command to analyze different sample values. Entering interactive mode (type "help" for commands, "o" for options) (pprof) top Showing nodes accounting for 0, 0% of 0 total flat flat% sum% cum cum% (pprof)
我在这里做错了什么?
注意:我的Go版本是go版本go1.13.1 linux/amd64
慕莱坞森
UYOU
相关分类