summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alk@tut.by>2014-07-26 13:59:22 -0700
committerAliaksey Kandratsenka <alk@tut.by>2014-07-26 14:04:26 -0700
commitd5e36788d8bc626403dc020a86213cfc740ee73d (patch)
tree80a5bbe7a1157ed30656eabdd226f16792052973
parent4b788656bb9c480640d917d27d8a94a5eae436f5 (diff)
downloadgperftools-d5e36788d8bc626403dc020a86213cfc740ee73d.tar.gz
issue-636: fix prof/web command on Windows/MinGW
This applies patch sent by user chaishushan.
-rwxr-xr-xsrc/pprof6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pprof b/src/pprof
index d23d4be..6e1c9cb 100755
--- a/src/pprof
+++ b/src/pprof
@@ -753,6 +753,12 @@ sub RunWeb {
return;
}
+ if (`uname` =~ /MINGW/) {
+ # Windows(MinGW): open will use standard preference for SVG files.
+ system("cmd", "/c", "start", $fname);
+ return;
+ }
+
# Some kind of Unix; try generic symlinks, then specific browsers.
# (Stop once we find one.)
# Works best if the browser is already running.