trace child processes, add header information about valgrind events to report
Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
parent
5ada8f8d8a
commit
71990d3988
2 changed files with 14 additions and 2 deletions
|
|
@ -1,9 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
function p_invoke() {
|
||||
# set trace-children=yes to profile worker processes
|
||||
valgrind --tool=callgrind \
|
||||
--trace-children=no \
|
||||
--trace-children=yes \
|
||||
--callgrind-out-file=/tmp/callgrind.output \
|
||||
--cache-sim=yes \
|
||||
/nginx/objs/nginx \
|
||||
|
|
|
|||
13
run.sh
13
run.sh
|
|
@ -18,6 +18,19 @@ fi
|
|||
KACLIENT=nginx-profile-setup-kaclient-1
|
||||
KAPROXY=nginx-profile-setup-kaproxy-1
|
||||
|
||||
echo "Callgrind output info:" >> $PROFILE_OUTPUT
|
||||
echo "Dr: number of memory reads" >> $PROFILE_OUTPUT
|
||||
echo "D1mr: D1 cache read misses" >> $PROFILE_OUTPUT
|
||||
echo "DLmr: LL (last level) cache data read misses" >> $PROFILE_OUTPUT
|
||||
echo "Dw: number of memory writes" >> $PROFILE_OUTPUT
|
||||
echo "D1mw: D1 cache write misses" >> $PROFILE_OUTPUT
|
||||
echo "DLmw: LL (last level) cache data write misses" >> $PROFILE_OUTPUT
|
||||
echo "Ir: number of instructions executed" >> $PROFILE_OUTPUT
|
||||
echo "I1mr: I1 cache read misses" >> $PROFILE_OUTPUT
|
||||
echo "ILmr: LL (last level) cache instruction read misses" >> $PROFILE_OUTPUT
|
||||
|
||||
echo "\n\n" >> $PROFILE_OUTPUT
|
||||
|
||||
echo "[+] building and deploying containers"
|
||||
go build keepalive-svc.go
|
||||
mv keepalive-svc kasvc/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue