Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/pprof: web/weblist visualization failure caused by incorrect web browser invocation is hard to debug #25853
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
@ysmolsky it turns out I had a
The reason this has been working for most people on Mac, I assume, is because of the last command
My suggestion is to add the real Chrome path mentioned above as one of the mac os commands to run. Probably in line 343 for reference: https://github.com/google/pprof/blob/master/internal/driver/commands.go#L340-L343
Happy to hear your thoughts and submit a pr unless you see something incorrect about my assumptions above. Thanks
@ysmolsky I agree with the specific path to Chrome (although this is the default binary path for every macOS chrome browser).
Furthermore, I personally have never seen
I wonder if there's a way to warn the user so they wouldn't spend 3-5 hours like I did being confused as to why "chrome" wasn't working with pprof. Maybe just default to
One thing that I have noticed is that pprof does not report an error when the first found vizualizer have returned an error:
% cat $(which chrome) #!/bin/sh echo ERROR exit 1 % go tool pprof prof.prof Main binary filename not available. Type: cpu Entering interactive mode (type "help" for commands, "o" for options) (pprof) web (pprof)
That means that I cannot reproduce your problem. Also did you run
Wait a second. The
Ping @hyangah for some ideas.