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

cmd/pprof: web command works but -web flag does not #11729

Closed
josharian opened this issue Jul 15, 2015 · 3 comments
Closed

cmd/pprof: web command works but -web flag does not #11729

josharian opened this issue Jul 15, 2015 · 3 comments
Assignees
Milestone

Comments

@josharian
Copy link
Contributor

@josharian josharian commented Jul 15, 2015

$ go tool pprof -web x.test cpu.prof

results in a 404 in my browser.

$ go tool pprof x.test cpu.prof
Entering interactive mode (type "help" for commands)
(pprof) web
(pprof) 

results in an svg displayed in my browser.

@ebfe
Copy link
Contributor

@ebfe ebfe commented Jul 18, 2015

On a side note: "web" seems a misnomer for the current implementation. It uses xdg-open on Linux and at least on some systems xdg-open doesn't launch a browser but gimp to view the svg.

@rsc
Copy link
Contributor

@rsc rsc commented Jul 20, 2015

I think the problem is that -web exits (deleting the temp file) before the browser has had a chance to open it.

@gopherbot
Copy link

@gopherbot gopherbot commented Jul 22, 2015

CL https://golang.org/cl/12553 mentions this issue.

@rsc rsc closed this in 3bab4ef Jul 23, 2015
@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Jul 23, 2015
@golang golang locked and limited conversation to collaborators Aug 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.