Details
Description
ANALYZE FORMAT=JSON $stmt can (should) print more data about execution.
Requested things
- execution time of various parts of the statement
- Real IO done by accesses to different tables
- etc etc
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-7811 EXPLAIN/ANALYZE FORMAT=JSON should show subquery cache
-
- Closed
-
-
MDEV-7854 ANALYZE FORMAT=JSON should provide info about used tmp.tables
-
- Open
-
-
MDEV-7836 ANALYZE FORMAT=JSON should provide info about GROUP BY
-
- In Progress
-
-
MDEV-7812 ANALYZE FORMAT=JSON UPDATE/DELETE doesnt print the r_total_time_ms
-
- Closed
-
-
MDEV-7833 ANALYZE FORMAT=JSON and Range checked for each record
-
- Closed
-
-
MDEV-7834 ANALYZE FORMAT=JSON output column should be named ANALYZE
-
- Closed
-
-
MDEV-7835 ANALYZE FORMAT=JSON should show buffer sizes
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Studying how to get execution time.
when the server is started with performance_schema=ON (and no other changes from the default), it actually does count time spent accessing the tables.
Proof: put a breakpoint in start_table_io_wait_v1, see this to execute:
if (pfs_table->m_io_timed) { timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer); state->m_timer_start= timer_start;Put a breakpoint in end_table_io_wait_v1, see this:
if (flags & STATE_FLAG_TIMED) { timer_end= state->m_timer(); wait_time= timer_end - state->m_timer_start;