mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
misc/pprof: support web profiles on windows
LGTM=bradfitz R=golang-codereviews, bradfitz, alex.brainman CC=golang-codereviews https://golang.org/cl/61260044
This commit is contained in:
parent
ff5f9bbf6a
commit
fa3a2a84cc
1 changed files with 7 additions and 0 deletions
|
|
@ -730,6 +730,13 @@ sub RunWeb {
|
|||
return;
|
||||
}
|
||||
|
||||
if (`uname` =~ /CYGWIN/) {
|
||||
# Windows(cygwin): open will use standard preference for SVG files.
|
||||
my $winname = `cygpath -wa $fname`;
|
||||
system("explorer.exe", $winname);
|
||||
return;
|
||||
}
|
||||
|
||||
# Some kind of Unix; try generic symlinks, then specific browsers.
|
||||
# (Stop once we find one.)
|
||||
# Works best if the browser is already running.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue