--쿼리 실행 후 프로파일링 값을 확인
SHOW PROFILES;
--쿼리 번호로 참조
SHOW PROFILE FOR QUERY 1;
--전체 참조
SHOW PROFILE ALL FOR QUERY 1;
--관련 정보만 참조
SHOW PROFILE CPU FOR QUERY 1;
SHOW PROFILE IPC FOR QUERY 1;
SHOW PROFILE BLOCK IO FOR QUERY 1;
SHOW PROFILE CONTEXT SWITCHES FOR QUERY 1;
SHOW PROFILE PAGE FAULTS FOR QUERY 1;
SHOW PROFILE MEMORY FOR QUERY 1;
SHOW PROFILE SOURCE FOR QUERY 1;
SHOW PROFILE SWAPS FOR QUERY 1;
--INFORMATION_SCHEMA 에서 확인
SELECT * AS DURATION FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID = 1 ORDER BY SEQ;