Skip to content
New issue

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

runtime/pprof: go test report empty cpuprofile file on wsl #27115

Closed
lsytj0413 opened this issue Aug 21, 2018 · 3 comments
Closed

runtime/pprof: go test report empty cpuprofile file on wsl #27115

lsytj0413 opened this issue Aug 21, 2018 · 3 comments

Comments

@lsytj0413
Copy link

What version of Go are you using (go version)?

in wsl:

go version go1.10.1 linux/amd64

Does this issue reproduce with the latest release?

unverified.

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/soren/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/soren/workspace/golang/lib:/home/soren/workspace/golang"
GORACE=""
GOROOT="/usr/lib/go-1.10"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.10/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
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-build144534119=/tmp/go-build -gno-record-gcc-switches"

What did you do?

i was learn Go profile, and follow this chapter's step. but the cpuprofile produce a empty output file and has nothing when use go tool pprof prof command.

with the same code and command i test on windows, it works fine.

What did you expect to see?

What did you see instead?

@lsytj0413
Copy link
Author

@thunayyanabdullah sorry, i cann't understand what do you mean

@mikioh mikioh changed the title go test report empty cpuprofile file on wsl runtime/pprof: go test report empty cpuprofile file on wsl Aug 21, 2018
@mikioh
Copy link
Contributor

mikioh commented Aug 21, 2018

Dup of #22366, and looks like #22366 needs an expert on WSL and Windows internals and Linux.

@mikioh mikioh closed this as completed Aug 21, 2018
@golang golang locked and limited conversation to collaborators Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants
@mikioh @lsytj0413 @gopherbot and others