summaryrefslogtreecommitdiff
path: root/misc/pprof
diff options
context:
space:
mode:
Diffstat (limited to 'misc/pprof')
-rwxr-xr-xmisc/pprof9
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/) {