diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2014-06-19 09:22:53 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@debian.org> | 2014-06-19 09:22:53 +0200 |
commit | 8a39ee361feb9bf46d728ff1ba4f07ca1d9610b1 (patch) | |
tree | 4449f2036cccf162e8417cc5841a35815b3e7ac5 /misc/pprof | |
parent | c8bf49ef8a92e2337b69c14b9b88396efe498600 (diff) | |
download | golang-upstream/1.3.tar.gz |
Imported Upstream version 1.3upstream/1.3
Diffstat (limited to 'misc/pprof')
-rwxr-xr-x | misc/pprof | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/pprof b/misc/pprof index 1fc8d3621..ad3f1ebe1 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. @@ -2645,6 +2652,7 @@ sub RemoveUninterestingFrames { 'makechan', 'makemap', 'mal', + 'profilealloc', 'runtime.new', 'makeslice1', 'runtime.malloc', @@ -4608,6 +4616,7 @@ sub ConfigureObjTools { # in the same directory as pprof. $obj_tool_map{"nm_pdb"} = "nm-pdb"; $obj_tool_map{"addr2line_pdb"} = "addr2line-pdb"; + $obj_tool_map{"objdump"} = "false"; # no objdump } if ($file_type =~ /Mach-O/) { |