projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add function to query the memory usage of the BP structure.
[SXSI/xpathcomp.git]
/
src
/
OCamlDriver.cpp
diff --git
a/src/OCamlDriver.cpp
b/src/OCamlDriver.cpp
index
ab145ec
..
7cf70c5
100644
(file)
--- a/
src/OCamlDriver.cpp
+++ b/
src/OCamlDriver.cpp
@@
-1155,3
+1155,8
@@
extern "C" value caml_bp_save(value b, value file)
CAMLreturn(Val_unit);
}
+extern "C" value caml_bp_alloc_stats(value unit)
+{
+ CAMLparam1(unit);
+ CAMLreturn (Val_long(bp_get_alloc_stats()));
+}