Note: I included the entire command I used (minus package name) because I don't know for sure which flags are affecting the results.
Given the following command running in Windows 7 64bit:
go test -cpu 2 -bench . -cpuprofile cpu.out -memprofile mem.out [my package name]
The command produces output in the files "cpu.out" and "mem.out" in a format I can't figure out. It's not text (which I would have preferred), that much is certain. Here is what I have looked into so far:
From what I can tell, "go tool pprof" is designed to run and profile a program, but not to parse and display results from previously generated profile output. I tried installing Perl and Graphviz but am still stumped as to how or whether I am supposed to use those tools to interpret the files output during "go test".
What commands or tools am I supposed to use in a Windows environment to view profile output generated from the -cpuprofile and -memprofile flags in the "go test" command? I have read the testing documentation at
golang.org and I suspect I'm either looking in the wrong place or misunderstanding the docs that are there.
Thanks very much to those who took the time to read this.