This is perhaps due to some silly thing I am doing, but I at least have a minimal test case so I figured I'd reach out for help at this point: I cannot get "disasm" in "go tool pprof" working. "list" works correctly afaict (and weblist too), but "disasm" only prints out the total time, not the expected output as implied by online docs and blogs that I've found.
Go version: go version go1.13.6 windows/amd64 Minimal reproducer: 1. Compile an extremely simple program which imports "net/http/pprof" and otherwise does busy work (https://play.golang.org/p/RZakdbLqiTQ). 2. Run that program 3. Run "go tool pprof localhost:1123/debug/pprof/profile?seconds=3" 4. Inside the pprof commandline, try "list" and "disasm"; note the (lack of) output for disasm: (pprof) list callAThing > Total: 3.47s > ROUTINE ======================== main.callAThing in > C:\Users\chowski\prog\gopath\src\sandbox\pprof_not_working\test_pprof.go > 60ms 2.94s (flat, cum) 84.73% of Total > . . 16: callAThing(i) > . . 17: } > . . 18:} > . . 19: > . . 20:func callAThing(i int) int { > 30ms 30ms 21: for x := 0; x < 10000; x++ { > 10ms 1.83s 22: y := fmt.Sprintf("%d; %v", x, i) > 20ms 1.08s 23: fmt.Fprintf(ioutil.Discard, "%s", > y) > . . 24: } > . . 25: return i > . . 26:} > (pprof) disasm callAThing > Total: 3.47s > (pprof) Anyone know what I'm doing wrong? Is there a program that I need to have installed to get this to work? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6e34c030-56e3-4d13-ac0c-277afdd588da%40googlegroups.com.