Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv26429/src/backends/monet5

Modified Files:
        sql.mx 
Log Message:
propagated changes of Sunday Oct 25 2009 - Monday Oct 26 2009
from the Nov2009 branch to the development trunk

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/10/25 - mlkersten: src/backends/monet5/sql.mx,1.358.2.6
  Make the profile information accessible for inspection using SQL.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: sql.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql.mx,v
retrieving revision 1.362
retrieving revision 1.363
diff -u -d -r1.362 -r1.363
--- sql.mx      23 Oct 2009 22:43:35 -0000      1.362
+++ sql.mx      26 Oct 2009 10:12:44 -0000      1.363
@@ -448,6 +448,10 @@
 address dump_opt_stats
 comment "dump the optimizer rewrite statistics";
 
+pattern dump_trace() :bat[:str,:bat]
+address dump_trace
+comment "dump the trace statistics";
+
 @- SQL function aliases
 The code generate should identify the precise module
 target for all functions. This creates quite some
@@ -3968,6 +3972,23 @@
        return MAL_SUCCEED;
 }
 
+/* str dump_opt_stats(int *r); */
+str
+dump_trace(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
+{
+       mvc *m = NULL;
+       str msg = getContext(cntxt,mb, &m, NULL);
+       BAT *t;
+       int *r = (int *) getArgReference(stk, pci, 0);
+
+       if (msg)
+               return msg;
+       t= TRACEtable();
+       *r = t->batCacheid;
+       BBPkeepref(*r);
+       return MAL_SUCCEED;
+}
+
 /* str sql_rowid(oid *rid, ptr v, str *sname, str *tname); */
 str 
 sql_rowid(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to