Changeset: 356f40ece585 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/356f40ece585
Modified Files:
        sql/backends/monet5/sql_scenario.c
Branch: sql_profiler
Log Message:

Designate stop and start events for sql parsing.


diffs (22 lines):

diff --git a/sql/backends/monet5/sql_scenario.c 
b/sql/backends/monet5/sql_scenario.c
--- a/sql/backends/monet5/sql_scenario.c
+++ b/sql/backends/monet5/sql_scenario.c
@@ -1103,6 +1103,9 @@ SQLparser(Client c)
                goto finalize;
        }
 
+       // TODO PROFILER: I will try to have the c->curprg->def->tag available
+       // TODO PROFILER EVENT: start of sql parsing is start of sql compilation
+
        if ((err = sqlparse(m)) ||
            /* Only forget old errors on transaction boundaries */
            (mvc_status(m) && m->type != Q_TRANS) || !m->sym) {
@@ -1129,6 +1132,8 @@ SQLparser(Client c)
        be->q = NULL;
        c->query = query_cleaned(m->sa, QUERY(m->scanner));
 
+       // TODO PROFILER EVENT: end of sql parsing. Also add the cleaned query 
to the event
+
        if (c->query == NULL) {
                err = 1;
                msg = createException(PARSE, "SQLparser", SQLSTATE(HY013) 
MAL_MALLOC_FAIL);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to