mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
PT-90 Ran util/update command to add changes to bin
~/perldev/percona-toolkit $ ./util/update-modules bin/pt-stalk collect
This commit is contained in:
14
bin/pt-stalk
14
bin/pt-stalk
@@ -833,8 +833,6 @@ collect() {
|
|||||||
else
|
else
|
||||||
log "Could not find the MySQL error log"
|
log "Could not find the MySQL error log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "${mysql_version}" '>' "5.1" ]; then
|
if [ "${mysql_version}" '>' "5.1" ]; then
|
||||||
local mutex="SHOW ENGINE INNODB MUTEX"
|
local mutex="SHOW ENGINE INNODB MUTEX"
|
||||||
else
|
else
|
||||||
@@ -959,6 +957,10 @@ collect() {
|
|||||||
ps_locks_transactions "$d/$p-ps-locks-transactions"
|
ps_locks_transactions "$d/$p-ps-locks-transactions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${mysql_version}" '>' "5.6" ]; then
|
||||||
|
(echo $ts; ps_prepared_statements) >> "$d/$p-prepared-statements" &
|
||||||
|
fi
|
||||||
|
|
||||||
curr_time=$(date +'%s')
|
curr_time=$(date +'%s')
|
||||||
done
|
done
|
||||||
log "Loop end: $(date +'TS %s.%N %F %T')"
|
log "Loop end: $(date +'TS %s.%N %F %T')"
|
||||||
@@ -1123,6 +1125,14 @@ ps_locks_transactions() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ps_prepared_statements() {
|
||||||
|
$CMD_MYSQL $EXT_ARGV -e "SELECT t.processlist_id, pse.* \
|
||||||
|
FROM performance_schema.prepared_statements_instances pse \
|
||||||
|
JOIN performance_schema.threads t \
|
||||||
|
ON (pse.OWNER_THREAD_ID=t.thread_id)\G"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# ###########################################################################
|
# ###########################################################################
|
||||||
# End collect package
|
# End collect package
|
||||||
# ###########################################################################
|
# ###########################################################################
|
||||||
|
Reference in New Issue
Block a user