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

pprof - web, displays the recursive function on the picture incorrectly. #48644

Closed
gussev opened this issue Sep 27, 2021 · 3 comments
Closed

Comments

@gussev
Copy link

gussev commented Sep 27, 2021

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

1.17.1

$ go version

Does this issue reproduce with the latest release?

yes

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

windows

go env Output
$ go env
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\alex\AppData\Local\go-build
set GOENV=C:\Users\alex\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\alex\go-dist\go1.17.1\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\alex\go-dist\go1.17.1;E:\Gusev\GoProject\Mastering-Go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Users\alex\go-dist\go1.17.1
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Users\alex\go-dist\go1.17.1\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.17.1
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=E:\Gusev\GoProject\JetBrain\Go-Test\Profile\Havlak-pro\go.mod
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\alex\AppData\Local\Temp\go-build651633134=/tmp/
go-build -gno-record-gcc-switches

What did you do?

currently I walk through the sample given there:
https://go.dev/blog/pprof

but when I came at the point where the user should enter web command to the pprof
I do not see that the function named DFS calls itself on a picture.
Looks like I do use a proper version of the sample - go_pro, where the recursion is present:
https://github.com/hundt98847/multi-language-bench/tree/master/src/havlak/go_pro

So, what could be the reason that the picture is painted not properly ?

https://github.com/hundt98847/multi-language-bench/tree/master/src/havlak/go_pro

What did you expect to see?

I do expect to see what was written in example. The function DFS on a picture calls itself around 21342 times.

Thank you.

What did you see instead?

@gussev
Copy link
Author

gussev commented Sep 27, 2021

out

@gussev
Copy link
Author

gussev commented Sep 27, 2021

So, there is a picture.

@gussev gussev changed the title pprof pprof, displays the recursive function on the picture incorrectly. Sep 27, 2021
@gussev gussev changed the title pprof, displays the recursive function on the picture incorrectly. pprof - web, displays the recursive function on the picture incorrectly. Sep 27, 2021
@gussev
Copy link
Author

gussev commented Sep 28, 2021

probably, in case the answer is there:
https://github.com/golang/go/blob/go1.17/src/runtime/cpuprof.go#L21
just close the issue.

Regards.

@golang golang locked and limited conversation to collaborators Sep 28, 2022
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

3 participants