MySQL

[MySQL] MySQL 성능 분석 프로시저

bbugge 2025. 1. 12. 08:42

// 인자로 주어진 쿼리 다이제스트에 대해 Performance 스키마에서 수집된 정보의 통계 데이터를 얻고 싶은 쿼리 다이제스트 값을 입력한다.

sys.ps_trace_statement_digest

 

MySQL :: MySQL 8.4 Reference Manual :: 30.4.4.22 The ps_trace_statement_digest() Procedure

30.4.4.22 The ps_trace_statement_digest() Procedure Traces all Performance Schema instrumentation for a specific statement digest. If you find a statement of interest within the Performance Schema events_statements_summary_by_digest table, specify its DIG

dev.mysql.com

 

// 인자로 주어진 스레드와 관련된 Performance 스키마의 모든 데이터를 ".dot" 형식의 그래프 파일로 덤프한다.

sys.ps_trace_thread

 

MySQL :: MySQL 8.4 Reference Manual :: 30.4.4.23 The ps_trace_thread() Procedure

30.4.4.23 The ps_trace_thread() Procedure Dumps all Performance Schema data for an instrumented thread to a .dot formatted graph file (for the DOT graph description language). Each result set returned from the procedure should be used for a complete graph

dev.mysql.com

 

// 서버에서 실행 중인 쿼리들에 대한 분석 보고서를 출력한다.
sys.statement_performance_analyzer

 

MySQL :: MySQL 8.4 Reference Manual :: 30.4.4.25 The statement_performance_analyzer() Procedure

30.4.4.25 The statement_performance_analyzer() Procedure Creates a report of the statements running on the server. The views are calculated based on the overall and/or delta activity. This procedure disables binary logging during its execution by manipula

dev.mysql.com

 

'MySQL' 카테고리의 다른 글

[MySQL] Group Replication  (0) 2025.01.12
[MySQL] 쿼리 프로파일링 (Query profiling)  (0) 2025.01.12
[MySQL] 모니터링 쿼리  (0) 2024.12.21
[MySQL] MySQL Parameter  (0) 2024.11.16
[MySQL] FEDERATED (DBLINK)  (0) 2020.07.24