mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Changes after running the util/update-modules command.
cd ${PERCONA_TOOLKIT_BRANCH} util/update-modules bin/pt-stalk collect
This commit is contained in:
@@ -865,7 +865,7 @@ collect() {
|
|||||||
local strace_pid=$!
|
local strace_pid=$!
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ps -eaf >> "$d/$p-ps" &
|
ps -eaF >> "$d/$p-ps" &
|
||||||
top -bn${OPT_RUN_TIME} >> "$d/$p-top" &
|
top -bn${OPT_RUN_TIME} >> "$d/$p-top" &
|
||||||
|
|
||||||
[ "$mysqld_pid" ] && _lsof $mysqld_pid >> "$d/$p-lsof" &
|
[ "$mysqld_pid" ] && _lsof $mysqld_pid >> "$d/$p-lsof" &
|
||||||
@@ -956,7 +956,6 @@ collect() {
|
|||||||
(echo $ts; transactions) >>"$d/$p-transactions" &
|
(echo $ts; transactions) >>"$d/$p-transactions" &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$ps_instrumentation_enabled" > /tmp/k1
|
|
||||||
if [ "${mysql_version}" '>' "5.6" ] && [ $ps_instrumentation_enabled == "yes" ]; then
|
if [ "${mysql_version}" '>' "5.6" ] && [ $ps_instrumentation_enabled == "yes" ]; then
|
||||||
ps_locks_transactions "$d/$p-ps-locks-transactions"
|
ps_locks_transactions "$d/$p-ps-locks-transactions"
|
||||||
fi
|
fi
|
||||||
@@ -1148,6 +1147,7 @@ slave_status() {
|
|||||||
echo -e "\n$sql\n" >> $outfile
|
echo -e "\n$sql\n" >> $outfile
|
||||||
$CMD_MYSQL $EXT_ARGV -e "$sql" >> $outfile
|
$CMD_MYSQL $EXT_ARGV -e "$sql" >> $outfile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
collect_mysql_variables() {
|
collect_mysql_variables() {
|
||||||
@@ -1168,6 +1168,7 @@ collect_mysql_variables() {
|
|||||||
sql="select * from performance_schema.status_by_thread order by thread_id, variable_name; "
|
sql="select * from performance_schema.status_by_thread order by thread_id, variable_name; "
|
||||||
echo -e "\n$sql\n" >> $outfile
|
echo -e "\n$sql\n" >> $outfile
|
||||||
$CMD_MYSQL $EXT_ARGV -e "$sql" >> $outfile
|
$CMD_MYSQL $EXT_ARGV -e "$sql" >> $outfile
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ###########################################################################
|
# ###########################################################################
|
||||||
|
Reference in New Issue
Block a user