File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ SET profiling = 1;
2
+ SELECT 1;
3
+ 1
4
+ 1
5
+ SHOW PROFILES;
6
+ Query_ID Duration Query
7
+ 1 # SELECT 1
8
+ SHOW PROFILE FOR QUERY 1;
9
+ SHOW PROFILE CPU FOR QUERY 1;
10
+ SET profiling = 0;
Original file line number Diff line number Diff line change
1
+ #
2
+ # Test for show profiles
3
+ # No meaningful check is possible.
4
+ # So it only checks that SET profiling is possible and
5
+ # that SHOW PROFILES, SHOW PROFILE FOR QUERY and SHOW PROFILE CPU FOR QUERY
6
+ # do not cause syntax errors. It also increases code coverage for sql_profile.cc
7
+
8
+ --source include/have_profiling.inc
9
+ SET profiling = 1;
10
+ SELECT 1;
11
+ --replace_column 2 #
12
+ SHOW PROFILES;
13
+ --disable_result_log
14
+ SHOW PROFILE FOR QUERY 1;
15
+ SHOW PROFILE CPU FOR QUERY 1;
16
+ --enable_result_log
17
+ SET profiling = 0;
18
+
You can’t perform that action at this time.
0 commit comments