From fa3a2a84cc2f4aa10ddb2a205e9fb0656d46ff83 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Mon, 10 Feb 2014 13:52:58 +0400 Subject: [PATCH] misc/pprof: support web profiles on windows LGTM=bradfitz R=golang-codereviews, bradfitz, alex.brainman CC=golang-codereviews https://golang.org/cl/61260044 --- misc/pprof | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.48.1