Commit ddcd118c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel
Browse files

#4439 fix pmprof so that we can use it for any process closes[t:4439]

git-svn-id: file:///svn/toku/tokudb@39208 c7de825b-a66e-492c-adef-691d508d4ae1
parent 26fa2ecd
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
#!/bin/bash

nsamples=30
nsamples=1
sleeptime=1

while [ $# -gt 0 ] ; do
    arg=$1; 
    if [[ $arg =~ --(.*)=(.*) ]] ; then
	eval ${BASH_REMATCH[1]}=${BASH_REMATCH[2]}
    else
	break
	fi
    shift
done

# change the process name
pid=$(pidof loader-stress-test.tdb)
pid=$*

# may need the cilk gdb