Usage :
mysqldumpslow slowlog
mysqldumpslow slowlog -s t
sort by total query time
mysqldumpslow slowlog -g "TEST"
regular expression match TEST
to display more digital in time
vim mysqldumpslow
167c167
< printf "Count: %d Time=%.2fs (%ds) Lock=%.2fs (%ds) Rows=%.1f (%d), $user\@$host\n%s\n\n",
---
> printf "Count: %d Time=%.6fs (%.2fs) Lock=%.6fs (%.2fs) Rows=%.1f (%d), $user\@$host\n%s\n\n",
沒有留言:
張貼留言