summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2014-02-10 13:52:58 +0400
committerDmitriy Vyukov <dvyukov@google.com>2014-02-10 13:52:58 +0400
commitac9bf897a29dc9f6ff68015380b707670b5b81bc (patch)
tree59986ee06434deda727641de6903231de2fbccd7 /misc
parenta0b8e24dbceb6db24d0505ffedfdf218a0a04581 (diff)
downloadgo-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-xmisc/pprof7
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.