pike.git/
src/
block_alloc.h
Branch:
Tag:
Non-build tags
All tags
No tags
2012-02-09
2012-02-09 13:29:47 by Arne Goedeke <el@laramies.com>
e3b456ee2362cba157ee45a2b0e878e9a3aefc7e (
12
lines) (+
12
/-
0
)
[
Show
|
Annotate
]
Branch:
arne/block_alloc
add show_pages (temporary)
250:
" at %p is still in use %s\n", d, msg); \ } \ \
+
PMOD_EXPORT void PIKE_CONCAT(show_pages_,DATA)() {\
+
struct PIKE_CONCAT(DATA,_block) *p = PIKE_CONCAT(DATA,_blocks); \
+
int c = 0;\
+
fprintf(stderr, "blocks of "#DATA"\n");\
+
while (p) {\
+
double filled = (double)p->used/BSIZE * 100;\
+
fprintf(stderr, "%d\t%f\n", c++, filled);\
+
p = p->next;\
+
} \
+
} \
+
\
static void PIKE_CONCAT(dmalloc_late_free_,DATA) (struct DATA *d) \ { \ /* Separate function to allow gdb breakpoints. */ \