mirror of
https://github.com/golang/go
synced 2024-11-27 00:11:19 -07: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
@ -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…
Reference in New Issue
Block a user