From: Dmitriy Vyukov Date: Mon, 10 Feb 2014 09:52:58 +0000 (+0400) Subject: misc/pprof: support web profiles on windows X-Git-Tag: go1.3beta1~786 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fa3a2a84cc2f4aa10ddb2a205e9fb0656d46ff83;p=gostls13.git misc/pprof: support web profiles on windows LGTM=bradfitz R=golang-codereviews, bradfitz, alex.brainman CC=golang-codereviews https://golang.org/cl/61260044 --- diff --git a/misc/pprof b/misc/pprof index 1fc8d36219..713c3620fc 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.