Changeset: 50c386ddbeac for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/50c386ddbeac
Modified Files:
        monetdb5/mal/mal_runtime.c
        monetdb5/mal/mal_runtime.h
Branch: default
Log Message:

cleanup unused functions


diffs (77 lines):

diff --git a/monetdb5/mal/mal_runtime.c b/monetdb5/mal/mal_runtime.c
--- a/monetdb5/mal/mal_runtime.c
+++ b/monetdb5/mal/mal_runtime.c
@@ -386,61 +386,3 @@ runtimeProfileExit(Client cntxt, MalBlkP
                        profilerStatus = 1;
        }
 }
-
-/*
- * For performance evaluation it is handy to estimate the
- * amount of bytes produced by an instruction.
- * The actual amount is harder to guess, because an instruction
- * may trigger a side effect, such as creating a hash-index.
- * Side effects are ignored.
- */
-
-lng
-getBatSpace(BAT *b)
-{
-       lng space = 0;
-       if (b == NULL)
-               return 0;
-       space += BATcount(b) << b->tshift;
-       if (space) {
-               MT_lock_set(&b->theaplock);
-               if (b->tvheap)
-                       space += heapinfo(b->tvheap, b->batCacheid);
-               MT_lock_unset(&b->theaplock);
-               MT_rwlock_rdlock(&b->thashlock);
-               space += hashinfo(b->thash, b->batCacheid);
-               MT_rwlock_rdunlock(&b->thashlock);
-       }
-       return space;
-}
-
-lng
-getVolume(MalStkPtr stk, InstrPtr pci, int rd)
-{
-       int i, limit;
-       lng vol = 0;
-       BAT *b;
-
-       if (stk == NULL)
-               return 0;
-       limit = rd ? pci->argc : pci->retc;
-       i = rd ? pci->retc : 0;
-
-       for (; i < limit; i++) {
-               if (stk->stk[getArg(pci, i)].bat) {
-                       oid cnt = 0;
-
-                       b = BBPquickdesc(stk->stk[getArg(pci, i)].val.bval);
-                       if (b == NULL)
-                               continue;
-                       cnt = BATcount(b);
-                       /* Usually reading views cost as much as full bats.
-                          But when we output a slice that is not the case. */
-                       if (rd)
-                               vol += (!isVIEW(b) && !VIEWtparent(b)) ? 
tailsize(b, cnt) : 0;
-                       else if (!isVIEW(b))
-                               vol += tailsize(b, cnt);
-               }
-       }
-       return vol;
-}
diff --git a/monetdb5/mal/mal_runtime.h b/monetdb5/mal/mal_runtime.h
--- a/monetdb5/mal/mal_runtime.h
+++ b/monetdb5/mal/mal_runtime.h
@@ -67,8 +67,6 @@ extern void runtimeProfileBegin(Client c
                                                                InstrPtr pci, 
RuntimeProfile prof);
 extern void runtimeProfileExit(Client cntxt, MalBlkPtr mb, MalStkPtr stk,
                                                           InstrPtr pci, 
RuntimeProfile prof);
-extern lng getVolume(MalStkPtr stk, InstrPtr pci, int rd);
-extern lng getBatSpace(BAT *b);
 extern void sqlProfilerEvent(Client cntxt, MalBlkPtr mb, MalStkPtr stk,
                                                         InstrPtr pci, lng clk, 
lng ticks);
 
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to