You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\sivarrk\AppData\Local\go-build
set GOENV=C:\Users\sivarrk\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\sivarrk\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\sivarrk\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\sivarrk\AppData\Local\Temp\go-build311372794=/tmp/go-build -gno-record-gcc-switches
What did you do?
I am trying out 'go trace' for the first time on a server endpoint after setting up my own Mux and the endpoints
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am trying out 'go trace' for the first time on a server endpoint after setting up my own Mux and the endpoints
mux.HandleFunc("/debug/pprof/", http.HandlerFunc(pprof.Index))
mux.HandleFunc("/debug/pprof/cmdline", http.HandlerFunc(pprof.Cmdline))
mux.HandleFunc("/debug/pprof/profile", http.HandlerFunc(pprof.Profile))
mux.HandleFunc("/debug/pprof/symbol", http.HandlerFunc(pprof.Symbol))
mux.HandleFunc("/debug/pprof/trace", http.HandlerFunc(pprof.Trace))
Then I startup Debugging in VSCode and then I start a process hitting the server in JMeter and finally do
curl -i -k -v https://localhost:443/debug/pprof/trace?seconds=10 > trace.out
Now, when I try
$ go tool trace trace.out 2020/11/21 09:06:56 Parsing trace... failed to parse trace: not a trace file
Why, an anyone suggest how to do the trace or is it only available with the DefaultServerMux?
go tool pprof is perfectly fine and it produces all the outputs though...
What did you expect to see?
The trace file to be opened by go and read and Chrome browser opened for viewing with the trace
What did you see instead?
Error as seen in the trace
The text was updated successfully, but these errors were encountered: