摘要:
记录使用perf统计mysql执行耗时
perf使用:
FlameGraph.tar.gz-C++文档类资源-优快云下载
tar -xzvf FlameGraph.tar.gz
cd FlameGraphyum install perf -y
perf record -a -F 99 -g -p $(pgrep -x mysqld) -- /stonedb56/install/bin/mysql -D tpch -e "select
o_orderpriority,
count(*) as order_count
from
orders