]> Cypherpunks repositories - gostls13.git/commitdiff
misc/pprof: support web profiles on windows
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 10 Feb 2014 09:52:58 +0000 (13:52 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 10 Feb 2014 09:52:58 +0000 (13:52 +0400)
LGTM=bradfitz
R=golang-codereviews, bradfitz, alex.brainman
CC=golang-codereviews
https://golang.org/cl/61260044

misc/pprof

index 1fc8d362193dd1acb7ed050beb01f1f9c9414e1b..713c3620fcf5556368951ad4e3baab3afd31ebf2 100755 (executable)
@@ -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.