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

go tool pprof: parsing memory profile failed #43132

Closed
justkeepsimple opened this issue Dec 11, 2020 · 0 comments
Closed

go tool pprof: parsing memory profile failed #43132

justkeepsimple opened this issue Dec 11, 2020 · 0 comments

Comments

@justkeepsimple
Copy link

justkeepsimple commented Dec 11, 2020

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

go version go1.14.13 linux/amd64

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

GOARCH="amd64"
GOOS="linux"

What did you do?

general memory profile with the code in the Function main

memf, err := os.OpenFile("mem_profile2", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
defer memf.Close()
if err != nil {
log.Fatal("could not create memory profile: ", err)
}
err = pprof.Lookup("heap").WriteTo(memf, 1)

error:
go tool pprof mem_profile2
mem_profile2: parsing profile: unexpected number of sample values: got 0, want 6

@golang golang locked and limited conversation to collaborators Dec 11, 2021
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

2 participants