Lines Matching refs:mstats
139 struct pta_stats_alloc mstats; member
287 if (ctx->poolset.totalloc > ctx->mstats.max_allocated) in raw_malloc_return_hook()
288 ctx->mstats.max_allocated = ctx->poolset.totalloc; in raw_malloc_return_hook()
291 ctx->mstats.num_alloc_fail++; in raw_malloc_return_hook()
293 if (requested_size > ctx->mstats.biggest_alloc_fail) { in raw_malloc_return_hook()
294 ctx->mstats.biggest_alloc_fail = requested_size; in raw_malloc_return_hook()
295 ctx->mstats.biggest_alloc_fail_used = in raw_malloc_return_hook()
307 ctx->mstats.max_allocated = 0; in gen_malloc_reset_stats()
308 ctx->mstats.num_alloc_fail = 0; in gen_malloc_reset_stats()
309 ctx->mstats.biggest_alloc_fail = 0; in gen_malloc_reset_stats()
310 ctx->mstats.biggest_alloc_fail_used = 0; in gen_malloc_reset_stats()
839 ctx->mstats.size += ctx->pool[ctx->pool_len].len; in raw_malloc_add_pool()
899 memcpy_unchecked(stats, &ctx->mstats, sizeof(*stats)); in raw_malloc_get_stats()