use perf instead of gprof
Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
parent
ce3844ef4e
commit
8924f2ef22
3 changed files with 13 additions and 3 deletions
|
|
@ -1,5 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
function p_invoke() {
|
||||
perf record -F1000 --call-graph dwarf -o /perf.data \
|
||||
-- /nginx/objs/nginx \
|
||||
-p /tmp \
|
||||
-e /tmp/error.log \
|
||||
-c /nginx.conf \
|
||||
-g "daemon off;"
|
||||
}
|
||||
|
||||
function invoke() {
|
||||
/nginx/objs/nginx \
|
||||
-p /tmp \
|
||||
|
|
@ -23,7 +32,7 @@ function sigcont_handler() {
|
|||
trap 'sigint_handler' INT
|
||||
trap 'sigcont_handler' CONT
|
||||
|
||||
invoke &
|
||||
p_invoke &
|
||||
wait
|
||||
echo "NGINX down. waiting until signalled..."
|
||||
sleep infinity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue