List:Commits« Previous MessageNext Message »
From:Chad MILLER Date:December 14 2007 3:40pm
Subject:bk commit into 5.1 tree (cmiller:1.2494)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of cmiller. When cmiller does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-12-14 09:39:57-05:00, cmiller@stripped +1 -0
  Add profiling support for embedded server.

  libmysqld/lib_sql.cc@stripped, 2007-12-14 09:39:53-05:00, cmiller@stripped +7 -0
    Start and finish profiling for a query in an embedded server.

diff -Nrup a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
--- a/libmysqld/lib_sql.cc	2007-10-31 10:16:51 -04:00
+++ b/libmysqld/lib_sql.cc	2007-12-14 09:39:53 -05:00
@@ -77,6 +77,10 @@ emb_advanced_command(MYSQL *mysql, enum 
   THD *thd=(THD *) mysql->thd;
   NET *net= &mysql->net;
 
+#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
+  thd->profiling.start_new_query();
+#endif
+
   thd->clear_data_list();
   /* Check that we are calling the client functions in right order */
   if (mysql->status != MYSQL_STATUS_READY)
@@ -116,6 +120,9 @@ emb_advanced_command(MYSQL *mysql, enum 
   if (!skip_check)
     result= thd->net.last_errno ? -1 : 0;
 
+#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
+  thd->profiling.finish_current_query();
+#endif
   return result;
 }
 
Thread
bk commit into 5.1 tree (cmiller:1.2494)Chad MILLER14 Dec