show variables like '%profiling%'; 查看状态
set profiling = 1; 开启
reset query cache; 清空缓存
select * from admin;
show profiles;
show profile for query 2;
show profile CPU for query 2;
show profile cpu,block io,memory,swaps for query 2;
show profile cpu,CONTEXT SWITCHES,PAGE FAULTS for query 2;