diff options
author | Aliaksey Kandratsenka <alk@tut.by> | 2014-07-26 13:59:22 -0700 |
---|---|---|
committer | Aliaksey Kandratsenka <alk@tut.by> | 2014-07-26 14:04:26 -0700 |
commit | d5e36788d8bc626403dc020a86213cfc740ee73d (patch) | |
tree | 80a5bbe7a1157ed30656eabdd226f16792052973 | |
parent | 4b788656bb9c480640d917d27d8a94a5eae436f5 (diff) | |
download | gperftools-d5e36788d8bc626403dc020a86213cfc740ee73d.tar.gz |
issue-636: fix prof/web command on Windows/MinGW
This applies patch sent by user chaishushan.
-rwxr-xr-x | src/pprof | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |