Im trying to learn to use Go's profiling capabilities. With that in mind I crated this simple app : https://github.com/Matias-Barrios/countWords which simply count the number of word occurrences for a given txt file.
The problem is, I can not see anything once the .cpu.prof file has been created. As soon as I open the file I get this error :
(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)
What am I doing wrong here?
Note : My Go version is go version go1.13.1 linux/amd64