MySQL スロークエリログを追う
- sql/mysqld.cc
6423 struct show_var_st status_vars[]= { ... 6601 {"Slow_queries", (char*) offsetof(STATUS_VAR, long_query_count), SHOW_LONG_STATUS}, ...
sql/sql_parse.cc 2343 void log_slow_statement(THD *thd){ ... 2227 current_global_status_var.long_query_count, ... 2375 thd->status_var.long_query_count++; }