+ size_t in_use, is_free;
+
+ nmem_get_memory_in_use(&in_use);
+ nmem_get_memory_free(&is_free);
+
+ yaz_log(YLOG_LOG, "nmem stat: use=%ld free=%ld",
+ (long) in_use, (long) is_free);
+}
+
+struct record **show(struct session *s, int start, int *num, int *total,
+ int *sumhits, NMEM nmem_show)
+{
+ struct record **recs = nmem_malloc(nmem_show, *num
+ * sizeof(struct record *));