Incomplete profiling info (a lot of nulls)
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Triaged
|
Medium
|
Unassigned | |||
5.6 |
Triaged
|
Medium
|
Unassigned | |||
5.7 |
Triaged
|
Medium
|
Unassigned |
Bug Description
There are a lot of null values for extra types in profiler's info. Types with nulls: CPU_user, CPU_system, Context_voluntary, Context_
Percona server (built by percona) versions:
Percona-
percona-
Percona-
percona-
Percona-
Percona-
OS: Centos, Linux db2 2.6.32-
STR:
mysql> set profiling=1;
mysql> select * from table where user_id=
mysql> show profiles;
+------
| Query_ID | Duration | Query |
+------
| 1 | 0.00021400 | select * from table where user_id=
+------
mysql> show profile all for query 1\G
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
Verified with 5.5.40 and 5.6.21
nilnandan@ Dell-XPS: ~/sandboxes/ msb_5_5_ 40$ mysql -uroot -p --socket= /tmp/mysql_ sandbox5540. sock
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.40-36.1 Percona Server (GPL), Release 36.1, Revision 707
Copyright (c) 2009-2014 Percona LLC and/or its affiliates
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set profiling=1;
Query OK, 0 rows affected (0.00 sec)
mysql> select * from table where user_id= '464b15d6794611 e48d7bd4bed9a94 cc6'; '464b15d6794611 e48d7bd4bed9a94 cc6'' at line 1 ----+-- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ ----+-- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ '464b15d6794611 e48d7bd4bed9a94 cc6' | ----+-- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table where user_id=
mysql>
mysql> show profiles;
+------
| Query_ID | Duration | Query |
+------
| 1 | 0.00013175 | select * from table where user_id=
+------
1 row in set (0.00 sec)
mysql> show profile all for query 1\G ******* ******* ****** 1. row ******* ******* ******* ******
Status: starting
Duration: 0.000091
CPU_ user: NULL
CPU_system: NULL voluntary: NULL involuntary: NULL
Block_ops_ in: NULL ops_out: NULL sent: NULL received: NULL faults_ major: NULL faults_ minor: NULL
Swaps: NULL function: NULL
Source_ file: NULL
Source_ line: NULL ******* ******* ****** 2. row ******* ******* ******* ******
Status: freeing items
Duration: 0.000032
CPU_ user: NULL
CPU_system: NULL voluntary: NULL involuntary: NULL
Block_ops_ in: NULL ops_out: NULL sent: NULL received: NULL faults_ major: NULL faults_ minor: NULL
Swaps: NULL function: mysql_parse
Source_ file: sql_parse.cc
Source_ line: 5931 ******* ******* ****** 3. row ******* ******* ******* ******
Status: logging slow query
Duration: 0.000004
CPU_ user: NULL
CPU_system: NULL voluntary: NULL involuntary: NULL
Block_ops_ in: NULL ops_out: NULL sent: NULL received: NULL faults_ major: NULL faults_ minor: NULL
Swaps: NULL function: log_slow_statement
Source_ file: sql_parse.cc
Source_ line: 1625 ******* ******* ****** 4. row ******* ******* ******* ******
Status: ...
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******
Context_
Context_
Block_
Messages_
Messages_
Page_
Page_
Source_
*******