mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Add more execution stages (commit, rollback, etc)
This was done to get more information about where time is spent. Now we can get proper timing for time spent in commit, rollback, binlog write etc. Following stages was added: - Commit - Commit_implicit - Rollback - Rollback implicit - Binlog write - Init for update - This is used instead of "Init" for insert, update and delete. - Staring cleanup Following stages where changed: - "Unlocking tables" stage reset stage to previous stage at end - "binlog write" stage resets stage to previous stage at end - "end" -> "end of update loop" - "cleaning up" -> "Reset for next command" - Added stage_searching_rows_for_update when searching for rows to be deleted. Other things: - Renamed all stages to start with big letter (before there was no consitency) - Increased performance_schema_max_stage_classes from 150 to 160. - Most of the test changes in performance schema comes from renaming of stages. - Removed duplicate output of variables and inital state in a lot of performance schema tests. This was done to make it easier to change a default value for a performance variable without affecting all tests. - Added start_server_variables.test to check configuration - Removed some duplicate "closing tables" stages - Updated position for "stage_init_update" and "stage_updating" for delete, insert and update to be just before update loop (for more exact timing). - Don't set "Checking permissions" twice in a row. - Remove stage_end stage from creating views (not done for create table either). - Updated default performance history size from 10 to 20 because of new stages - Ensure that ps_enabled is correct (to be used in a later patch)
This commit is contained in:
@ -411,6 +411,7 @@ extern PSI_stage_info stage_fulltext_initialization;
|
||||
extern PSI_stage_info stage_got_handler_lock;
|
||||
extern PSI_stage_info stage_got_old_table;
|
||||
extern PSI_stage_info stage_init;
|
||||
extern PSI_stage_info stage_init_update;
|
||||
extern PSI_stage_info stage_insert;
|
||||
extern PSI_stage_info stage_invalidating_query_cache_entries_table;
|
||||
extern PSI_stage_info stage_invalidating_query_cache_entries_table_list;
|
||||
@ -425,6 +426,11 @@ extern PSI_stage_info stage_optimizing;
|
||||
extern PSI_stage_info stage_preparing;
|
||||
extern PSI_stage_info stage_purging_old_relay_logs;
|
||||
extern PSI_stage_info stage_query_end;
|
||||
extern PSI_stage_info stage_starting_cleanup;
|
||||
extern PSI_stage_info stage_rollback;
|
||||
extern PSI_stage_info stage_rollback_implicit;
|
||||
extern PSI_stage_info stage_commit;
|
||||
extern PSI_stage_info stage_commit_implicit;
|
||||
extern PSI_stage_info stage_queueing_master_event_to_the_relay_log;
|
||||
extern PSI_stage_info stage_reading_event_from_the_relay_log;
|
||||
extern PSI_stage_info stage_recreating_table;
|
||||
@ -480,6 +486,7 @@ extern PSI_stage_info stage_waiting_for_the_slave_thread_to_advance_position;
|
||||
extern PSI_stage_info stage_waiting_to_finalize_termination;
|
||||
extern PSI_stage_info stage_waiting_to_get_readlock;
|
||||
extern PSI_stage_info stage_binlog_waiting_background_tasks;
|
||||
extern PSI_stage_info stage_binlog_write;
|
||||
extern PSI_stage_info stage_binlog_processing_checkpoint_notify;
|
||||
extern PSI_stage_info stage_binlog_stopping_background_thread;
|
||||
extern PSI_stage_info stage_waiting_for_work_from_sql_thread;
|
||||
|
Reference in New Issue
Block a user