Commit 35dc5e8e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Report cache sizes in memory-usage.

parent cd365ae0
/*
* $Id: simple-cache.c,v 0.22 1992/04/09 09:21:11 ceder Exp $
* $Id: simple-cache.c,v 0.23 1992/06/11 19:16:47 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -33,7 +33,7 @@
* New save algorithm by ceder.
*/
static char *rcsid = "$Id: simple-cache.c,v 0.22 1992/04/09 09:21:11 ceder Exp $";
static char *rcsid = "$Id: simple-cache.c,v 0.23 1992/06/11 19:16:47 ceder Exp $";
......@@ -2101,21 +2101,24 @@ dump_cache_stats(FILE *fp)
{
fprintf(fp, "---simple-cache.c:\n");
fprintf(fp,
"\tPersons:\n"
"\tPersons (cache size: %d):\n"
"\t hits: %lu\n"
"\t miss: %lu\n",
CACHE_PERSONS,
pers_mcb->hits,
pers_mcb->misses);
fprintf(fp,
"\tConferences:\n"
"\tConferences (cache size: %d):\n"
"\t hits: %lu\n"
"\t miss: %lu\n",
CACHE_CONFERENCES,
conf_mcb->hits,
conf_mcb->misses);
fprintf(fp,
"\tText_stats:\n"
"\tText_stats (cache size: %d):\n"
"\t hits: %lu\n"
"\t miss: %lu\n",
CACHE_TEXT_STATS,
text_mcb->hits,
text_mcb->misses);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment