Commit 18340bd8 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel
Browse files

fixing pmprof to not get confused when gdb gives strange output for a stack frame

git-svn-id: file:///svn/toku/tokudb@40205 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7712208b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,6 +26,6 @@ for x in $(seq 1 $nsamples)
awk '
  BEGIN { s = ""; } 
  /^Thread/ { if (s != "") print s; s = ""; } 
  /^\#/ { if (s != "" ) { s = s "," $4} else { s = $4 } } 
  /^\#/ { if ($3 == "in") { v = $4; } else { v = $2 } if (s != "" ) { s = s "," v} else { s = v } } 
  END { print s }' | \
sort | uniq -c | sort -r -n -k 1,1