Lines Matching defs:stats

97 struct stats {
133 struct stats * stats;
191 char name[16]; /*%< printed name in stats reports */
448 ctx->stats[new_size].blocks++;
449 ctx->stats[new_size].freefrags += frags;
470 ctx->stats[total_size].freefrags++;
502 ctx->stats[ctx->max_size].gets++;
503 ctx->stats[ctx->max_size].totalgets++;
528 * The stats[] uses the _actual_ "size" requested by the
533 ctx->stats[size].gets++;
534 ctx->stats[size].totalgets++;
535 ctx->stats[new_size].freefrags--;
575 INSIST(ctx->stats[ctx->max_size].gets != 0U);
576 ctx->stats[ctx->max_size].gets--;
597 * The stats[] uses the _actual_ "size" requested by the
602 INSIST(ctx->stats[size].gets != 0U);
603 ctx->stats[size].gets--;
604 ctx->stats[new_size].freefrags++;
661 ctx->stats[ctx->max_size].gets++;
662 ctx->stats[ctx->max_size].totalgets++;
664 ctx->stats[size].gets++;
665 ctx->stats[size].totalgets++;
680 INSIST(ctx->stats[ctx->max_size].gets > 0U);
681 ctx->stats[ctx->max_size].gets--;
683 INSIST(ctx->stats[size].gets > 0U);
684 ctx->stats[size].gets--;
778 ctx->stats = NULL;
794 ctx->stats = (memalloc)(arg,
795 (ctx->max_size+1) * sizeof(struct stats));
796 if (ctx->stats == NULL) {
800 memset(ctx->stats, 0, (ctx->max_size + 1) * sizeof(struct stats));
843 if (ctx->stats != NULL)
844 (memfree)(arg, ctx->stats);
919 if (ctx->stats[i].gets != 0U)
922 INSIST(ctx->stats[i].gets == 0U);
926 (ctx->memfree)(ctx->arg, ctx->stats);
1239 * Print the stats[] on the stream "out" with suitable formatting.
1244 const struct stats *s;
1251 s = &ctx->stats[i];
1266 * Note that since a pool can be locked now, these stats might be
1267 * somewhat off if the pool is in active use at the time the stats
1270 * stats fields is always safe.
2135 (ctx->max_size + 1) * sizeof(struct stats) +