mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
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
This commit is contained in:
parent
da234339c0
commit
bc28a61cd7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue