doing system wide operf

This commit is contained in:
Fernando Ipar
2017-01-24 19:34:02 -03:00
parent b53a9a76fe
commit 102ac33210
2 changed files with 2 additions and 2 deletions

View File

@@ -861,7 +861,7 @@ collect() {
have_oprofile="yes" have_oprofile="yes"
fi fi
else else
$CMD_OPCONTROL -p `pidof mysqld` & $CMD_OPCONTROL -s &
OPERF_PID=$! OPERF_PID=$!
fi fi
elif [ "$CMD_STRACE" -a "$OPT_COLLECT_STRACE" -a "$mysqld_pid" ]; then elif [ "$CMD_STRACE" -a "$OPT_COLLECT_STRACE" -a "$mysqld_pid" ]; then

View File

@@ -137,7 +137,7 @@ collect() {
fi fi
else else
# use operf, may fail under VirtualBox or old processor models (see http://oprofile.sourceforge.net/doc/perf_events.html) # use operf, may fail under VirtualBox or old processor models (see http://oprofile.sourceforge.net/doc/perf_events.html)
$CMD_OPCONTROL -p `pidof mysqld` & $CMD_OPCONTROL -s &
OPERF_PID=$! OPERF_PID=$!
fi fi
elif [ "$CMD_STRACE" -a "$OPT_COLLECT_STRACE" -a "$mysqld_pid" ]; then elif [ "$CMD_STRACE" -a "$OPT_COLLECT_STRACE" -a "$mysqld_pid" ]; then