We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
go version go1.12.6 linux/amd64
Yes
go env
GOARCH="amd64" GOBIN="/data/go/bin" GOCACHE="/home/steveh/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/data/go" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/steveh/go-redis-proxy/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build093919717=/tmp/go-build -gno-record-gcc-switches"
Ran benchmarks to get cpu profiles:
go test -cpuprofile cpu.prof -bench . go tool pprof cpu.prof
A non empty profile
An empty profile or at an error if the profile failed.
Running the exact same test on a BSD host resulted in the expected profile data so I suspect its related to running in the Ubuntu shell under WSL
The text was updated successfully, but these errors were encountered:
Thanks for the report.
This is a duplicate of #22366 (runtime/pprof: takes zero samples in BashOnWindows (WSL)), so I'm closing this thread in favour of the older one.
Sorry, something went wrong.
No branches or pull requests
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?
Ran benchmarks to get cpu profiles:
What did you expect to see?
A non empty profile
What did you see instead?
An empty profile or at an error if the profile failed.
Running the exact same test on a BSD host resulted in the expected profile data so I suspect its related to running in the Ubuntu shell under WSL
The text was updated successfully, but these errors were encountered: