]>
git.saurik.com Git - redis.git/blob - utils/whatisdoing.sh
1 # This script is from http://poormansprofiler.org/
6 pid
=$(pidof redis-server)
8 for x
in $(seq 1 $nsamples)
10 gdb
-ex "set pagination 0" -ex "thread apply all bt" -batch -p $pid
15 /Thread/ { print s; s = ""; }
16 /^\#/ { if (s != "" ) { s = s "," $4} else { s = $4 } }
18 sort | uniq -c | sort -r -n -k 1,1