diff options
author | Dmitriy Vyukov <dvyukov@google.com> | 2014-02-10 13:52:58 +0400 |
---|---|---|
committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-02-10 13:52:58 +0400 |
commit | ac9bf897a29dc9f6ff68015380b707670b5b81bc (patch) | |
tree | 59986ee06434deda727641de6903231de2fbccd7 /misc | |
parent | a0b8e24dbceb6db24d0505ffedfdf218a0a04581 (diff) | |
download | go-ac9bf897a29dc9f6ff68015380b707670b5b81bc.tar.gz |
misc/pprof: support web profiles on windows
LGTM=bradfitz
R=golang-codereviews, bradfitz, alex.brainman
CC=golang-codereviews
https://codereview.appspot.com/61260044
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/pprof | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/pprof b/misc/pprof index 1fc8d3621..713c3620f 100755 --- a/misc/pprof +++ b/misc/pprof @@ -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. |