I'm running CentOS 6 in a Docker container, and I'm not running an X Server on it.
When I try to run the "web" command I get:
(pprof) web
Total: 6962 samples
Dropping nodes with <= 34 samples; edges with <= 6 abs(samples)
Loading web page file:////tmp/nJ2VpkjSyr.0.svg
Can't exec "/etc/alternatives/gnome-www-browser": No such file or directory at /usr/lib/go/pkg/tool/linux_amd64/pprof line 743.
Can't exec "/etc/alternatives/x-www-browser": No such file or directory at /usr/lib/go/pkg/tool/linux_amd64/pprof line 743.
Can't exec "google-chrome": No such file or directory at /usr/lib/go/pkg/tool/linux_amd64/pprof line 743.
Can't exec "firefox": No such file or directory at /usr/lib/go/pkg/tool/linux_amd64/pprof line 743.
Could not load web browser.
And unfortunately it doesn't even save the file to /tmp/EmBAQVn6Kr.0.svg -- it seems like it deletes it after it fails to find a web browser.
I tried installing firefox, and it doesn't work there either:
Dropping nodes with <= 34 samples; edges with <= 6 abs(samples)
Loading web page file:////tmp/o7Z_W5cOVJ.0.svg
Can't exec "/etc/alternatives/gnome-www-browser": No such file or directory at /usr/lib/go/pkg/tool/linux_amd64/pprof line 743.
Can't exec "/etc/alternatives/x-www-browser": No such file or directory at /usr/lib/go/pkg/tool/linux_amd64/pprof line 743.
Can't exec "google-chrome": No such file or directory at /usr/lib/go/pkg/tool/linux_amd64/pprof line 743.
Error: no display specified
Could not load web browser.
Is there any way to just tell it to dump an svg file to the filesystem rather than trying to open a web browser?