Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27312/src/server
Modified Files:
sql_parser.mx sql_mvc.mx
Log Message:
dirty hack for user-times
(run your query with prefix 'profile' and it will return
real time in us, user time in ticks, and system time in ticks (also number
of ticks per second).
Index: sql_mvc.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_mvc.mx,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- sql_mvc.mx 7 Mar 2008 09:45:34 -0000 1.197
+++ sql_mvc.mx 25 Mar 2008 11:23:52 -0000 1.198
@@ -34,6 +34,9 @@
#include <sql_storage.h>
#include <sql_keyword.h>
#include <sql_atom.h>
+#ifdef HAVE_SYS_TIMES_H
+#include <sys/times.h>
+#endif
#include <mapilib/Mapi.h>
@@ -109,6 +112,9 @@
int result_id;
res_table *results;
sql_column *last; /* last accessed column */
+#ifdef HAVE_TIMES
+ struct tms times;
+#endif
} mvc;
extern int mvc_init(int debug, store_type store, backend_stack stk);
Index: sql_parser.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_parser.mx,v
retrieving revision 1.276
retrieving revision 1.277
diff -u -d -r1.276 -r1.277
--- sql_parser.mx 6 Mar 2008 14:20:28 -0000 1.276
+++ sql_parser.mx 25 Mar 2008 11:23:50 -0000 1.277
@@ -729,6 +729,9 @@
m->mode = m_profile;
m->scanner.as = m->scanner.yycur;
m->scanner.key = 0;
+#ifdef HAVE_TIMES
+ times(&m->times);
+#endif
}
sql SCOLON { mvc *m = (mvc*)parm;
m->sym = $$ = $3; YYACCEPT;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins