Skip to content

cmd/pprof: browser visualization on windows broken #9178

@cookieo9

Description

@cookieo9
Running one of the browser visualization commands in pprof on windows (eg: weblist)
produces the following error:

(pprof) weblist
exec: "/usr/bin/open": file does not exist

This happens because it attempts to execute echo of the following programs (as seen at
https://code.google.com/p/go/source/browse/src/cmd/pprof/internal/commands/commands.go#82)

var browsers = []string{"chrome", "google-chrome",
"firefox", "/usr/bin/open"}

None of these commands work on Windows because neither Chrome nor Firefox update PATH to
allow themselves to be run from the command line, and the last command is OS X specific
to let the OS find the correct program.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions