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 and -web isn't working properly #28059

Closed
xibz opened this issue Oct 6, 2018 · 4 comments
Closed

cmd/pprof: web and -web isn't working properly #28059

xibz opened this issue Oct 6, 2018 · 4 comments

Comments

@xibz
Copy link

xibz commented Oct 6, 2018

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

1.11.1

Does this issue reproduce with the latest release?

Yes

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

Mac OSX

What did you do?

go tool pprof -web cpu.profile binary
or
pprof> web

What did you expect to see?

Expected to see a web browser to view my benchmarks

What did you see instead?

Gimp attempting to open

@meirf meirf added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 7, 2018
@meirf
Copy link
Contributor

meirf commented Oct 7, 2018

@xibz can you give more detail on what you are seeing?

Pprof visualizations each have external dependencie(s) so we'd like to make sure this is something wrong with Go as opposed to your local installation of one the visualization dependencies.

@xibz
Copy link
Author

xibz commented Oct 7, 2018

@meirf - I can't give much more than instead of a browser popping up, gimp does. Is there any specific information you guys are looking for that may help debug this?

@meirf meirf removed the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 7, 2018
@meirf
Copy link
Contributor

meirf commented Oct 7, 2018

See this comment here: #11729 (comment)

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.

I recommend asking more about this on go nuts since this seems somewhat expected and has been around for a while. Thought one oddity is that comment says this happens on linux whereas you claim to be using mac osx.

@xibz
Copy link
Author

xibz commented Oct 7, 2018

Ah, figured out the issue. pprof uses macs /usr/bin/open command so it will use whatever default it opens too. I recently uninstalled my default browser for another and it made the default gimp. Sorry for the noise. Cheers.

@xibz xibz closed this as completed Oct 7, 2018
@golang golang locked and limited conversation to collaborators Oct 7, 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

3 participants