Lines Matching defs:astats
54 static bool ctl_arena_init(ctl_arena_stats_t *astats);
55 static void ctl_arena_clear(ctl_arena_stats_t *astats);
59 ctl_arena_stats_t *astats);
430 ctl_arena_init(ctl_arena_stats_t *astats)
433 if (astats->lstats == NULL) {
434 astats->lstats = (malloc_large_stats_t *)base_alloc(nlclasses *
436 if (astats->lstats == NULL)
444 ctl_arena_clear(ctl_arena_stats_t *astats)
447 astats->dss = dss_prec_names[dss_prec_limit];
448 astats->pactive = 0;
449 astats->pdirty = 0;
451 memset(&astats->astats, 0, sizeof(arena_stats_t));
452 astats->allocated_small = 0;
453 astats->nmalloc_small = 0;
454 astats->ndalloc_small = 0;
455 astats->nrequests_small = 0;
456 memset(astats->bstats, 0, NBINS * sizeof(malloc_bin_stats_t));
457 memset(astats->lstats, 0, nlclasses *
468 &cstats->pdirty, &cstats->astats, cstats->bstats, cstats->lstats);
479 ctl_arena_stats_smerge(ctl_arena_stats_t *sstats, ctl_arena_stats_t *astats)
483 sstats->pactive += astats->pactive;
484 sstats->pdirty += astats->pdirty;
486 sstats->astats.mapped += astats->astats.mapped;
487 sstats->astats.npurge += astats->astats.npurge;
488 sstats->astats.nmadvise += astats->astats.nmadvise;
489 sstats->astats.purged += astats->astats.purged;
491 sstats->allocated_small += astats->allocated_small;
492 sstats->nmalloc_small += astats->nmalloc_small;
493 sstats->ndalloc_small += astats->ndalloc_small;
494 sstats->nrequests_small += astats->nrequests_small;
496 sstats->astats.allocated_large += astats->astats.allocated_large;
497 sstats->astats.nmalloc_large += astats->astats.nmalloc_large;
498 sstats->astats.ndalloc_large += astats->astats.ndalloc_large;
499 sstats->astats.nrequests_large += astats->astats.nrequests_large;
502 sstats->lstats[i].nmalloc += astats->lstats[i].nmalloc;
503 sstats->lstats[i].ndalloc += astats->lstats[i].ndalloc;
504 sstats->lstats[i].nrequests += astats->lstats[i].nrequests;
505 sstats->lstats[i].curruns += astats->lstats[i].curruns;
509 sstats->bstats[i].allocated += astats->bstats[i].allocated;
510 sstats->bstats[i].nmalloc += astats->bstats[i].nmalloc;
511 sstats->bstats[i].ndalloc += astats->bstats[i].ndalloc;
512 sstats->bstats[i].nrequests += astats->bstats[i].nrequests;
514 sstats->bstats[i].nfills += astats->bstats[i].nfills;
516 astats->bstats[i].nflushes;
518 sstats->bstats[i].nruns += astats->bstats[i].nruns;
519 sstats->bstats[i].reruns += astats->bstats[i].reruns;
520 sstats->bstats[i].curruns += astats->bstats[i].curruns;
527 ctl_arena_stats_t *astats = &ctl_stats.arenas[i];
530 ctl_arena_clear(astats);
532 sstats->nthreads += astats->nthreads;
534 ctl_arena_stats_amerge(astats, arena);
536 ctl_arena_stats_smerge(sstats, astats);
538 astats->pactive += arena->nactive;
539 astats->pdirty += arena->ndirty;
550 ctl_arena_stats_t *astats;
557 astats = (ctl_arena_stats_t *)imalloc(astats_size);
558 if (astats == NULL)
560 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) *
566 idalloc(astats);
571 astats = (ctl_arena_stats_t *)iralloc(ctl_stats.arenas,
573 if (astats == NULL)
581 /* Initialize the new astats and arenas elements. */
582 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t));
583 if (ctl_arena_init(&astats[ctl_stats.narenas + 1]))
589 memcpy(&tstats, &astats[ctl_stats.narenas],
591 memcpy(&astats[ctl_stats.narenas],
592 &astats[ctl_stats.narenas + 1], sizeof(ctl_arena_stats_t));
593 memcpy(&astats[ctl_stats.narenas + 1], &tstats,
596 ctl_stats.arenas = astats;
654 + ctl_stats.arenas[ctl_stats.narenas].astats.allocated_large
1586 ctl_stats.arenas[mib[2]].astats.allocated_large, size_t)
1588 ctl_stats.arenas[mib[2]].astats.nmalloc_large, uint64_t)
1590 ctl_stats.arenas[mib[2]].astats.ndalloc_large, uint64_t)
1592 ctl_stats.arenas[mib[2]].astats.nrequests_large, uint64_t)
1645 ctl_stats.arenas[mib[2]].astats.mapped, size_t)
1647 ctl_stats.arenas[mib[2]].astats.npurge, uint64_t)
1649 ctl_stats.arenas[mib[2]].astats.nmadvise, uint64_t)
1651 ctl_stats.arenas[mib[2]].astats.purged, uint64_t)