mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Enclose profiling in preprocessor conditions.
include/config-win.h: Make profiling compiled-in by default on Windows too.
This commit is contained in:
@@ -43,3 +43,5 @@
|
|||||||
45db468b-DKE8kUTV42eYMYmk8_g9g
|
45db468b-DKE8kUTV42eYMYmk8_g9g
|
||||||
45dd21d1rVPnDfvZTNVHLalcjnbsZw
|
45dd21d1rVPnDfvZTNVHLalcjnbsZw
|
||||||
45ddaf15_Ld7IAEpUUP3FJjJ-oSEFg
|
45ddaf15_Ld7IAEpUUP3FJjJ-oSEFg
|
||||||
|
45ddc763DodLG1BqH_wRBJXMbCSB5A
|
||||||
|
45ddc8282KnaNGuijqCTphlXV_eeog
|
||||||
|
@@ -205,6 +205,9 @@ typedef uint rf_SetTimer;
|
|||||||
/* If LOAD DATA LOCAL INFILE should be enabled by default */
|
/* If LOAD DATA LOCAL INFILE should be enabled by default */
|
||||||
#define ENABLED_LOCAL_INFILE 1
|
#define ENABLED_LOCAL_INFILE 1
|
||||||
|
|
||||||
|
/* If query profiling should be enabled by default */
|
||||||
|
#define ENABLED_PROFILING 1
|
||||||
|
|
||||||
/* Convert some simple functions to Posix */
|
/* Convert some simple functions to Posix */
|
||||||
|
|
||||||
#define my_sigset(A,B) signal((A),(B))
|
#define my_sigset(A,B) signal((A),(B))
|
||||||
|
@@ -2222,7 +2222,9 @@ void mysql_stmt_execute(THD *thd, char *packet_arg, uint packet_length)
|
|||||||
if (!(stmt= find_prepared_statement(thd, stmt_id, "mysql_stmt_execute")))
|
if (!(stmt= find_prepared_statement(thd, stmt_id, "mysql_stmt_execute")))
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
|
|
||||||
|
#ifdef ENABLED_PROFILING
|
||||||
thd->profiling.set_query_source(stmt->query, stmt->query_length);
|
thd->profiling.set_query_source(stmt->query, stmt->query_length);
|
||||||
|
#endif
|
||||||
DBUG_PRINT("exec_query", ("%s", stmt->query));
|
DBUG_PRINT("exec_query", ("%s", stmt->query));
|
||||||
DBUG_PRINT("info",("stmt: %p", stmt));
|
DBUG_PRINT("info",("stmt: %p", stmt));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user