mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-18 09:43:09 +00:00
doing system wide operf
This commit is contained in:
@@ -861,7 +861,7 @@ collect() {
|
||||
have_oprofile="yes"
|
||||
fi
|
||||
else
|
||||
$CMD_OPCONTROL -p `pidof mysqld` &
|
||||
$CMD_OPCONTROL -s &
|
||||
OPERF_PID=$!
|
||||
fi
|
||||
elif [ "$CMD_STRACE" -a "$OPT_COLLECT_STRACE" -a "$mysqld_pid" ]; then
|
||||
|
@@ -137,7 +137,7 @@ collect() {
|
||||
fi
|
||||
else
|
||||
# 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=$!
|
||||
fi
|
||||
elif [ "$CMD_STRACE" -a "$OPT_COLLECT_STRACE" -a "$mysqld_pid" ]; then
|
||||
|
Reference in New Issue
Block a user