version 1.4.18.3, 2015/06/25 16:49:33
|
version 1.5, 2015/06/25 17:53:50
|
Line 775 xdump_show(u_int size, u_int act, u_int inact)
|
Line 775 xdump_show(u_int size, u_int act, u_int inact)
|
/* |
/* |
* mpool_xdump() - Dump elwix memory pool statistics |
* mpool_xdump() - Dump elwix memory pool statistics |
* |
* |
|
* @fmt = format string |
|
* @... = argument(s) |
* return: none |
* return: none |
*/ |
*/ |
void |
void |
mpool_xdump() | mpool_xdump(const char *fmt, ...) |
{ |
{ |
printf("\n%s(%d)\n------------------------------------------------------------\n", | va_list lst; |
__func__, __LINE__); | |
| if (fmt) { |
| va_start(lst, fmt); |
| vprintf(fmt, lst); |
| va_end(lst); |
| } else |
| printf("\n%s(%d)\n", __func__, __LINE__); |
| |
| printf("------------------------------------------------------------\n"); |
printf( " ELWIX memory pool ::\n" |
printf( " ELWIX memory pool ::\n" |
"\t- quotas Current/Real/Max = %lu/%lu/%lu\n" |
"\t- quotas Current/Real/Max = %lu/%lu/%lu\n" |
"\t- calls Alloc/Free/Cache = %lu/%lu/%lu\n" |
"\t- calls Alloc/Free/Cache = %lu/%lu/%lu\n" |