Commit bc28a61c authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

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 da234339
...@@ -26,6 +26,6 @@ for x in $(seq 1 $nsamples) ...@@ -26,6 +26,6 @@ for x in $(seq 1 $nsamples)
awk ' awk '
BEGIN { s = ""; } BEGIN { s = ""; }
/^Thread/ { if (s != "") print s; 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 }' | \ END { print s }' | \
sort | uniq -c | sort -r -n -k 1,1 sort | uniq -c | sort -r -n -k 1,1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment