mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 1082199 - Recompute stats in jemalloc_stats when using jemalloc3. r=glandium
This commit is contained in:
parent
d0628407c0
commit
258ec900a4
@ -68,6 +68,12 @@ jemalloc_stats_impl(jemalloc_stats_t *stats)
|
||||
size_t active, allocated, mapped, page, pdirty;
|
||||
size_t lg_chunk;
|
||||
|
||||
// Refresh jemalloc's stats by updating its epoch, see ctl_refresh in
|
||||
// src/ctl.c
|
||||
uint64_t epoch = 0;
|
||||
size_t esz = sizeof(epoch);
|
||||
int ret = je_(mallctl)("epoch", &epoch, &esz, &epoch, esz);
|
||||
|
||||
CTL_GET("arenas.narenas", narenas);
|
||||
CTL_GET("arenas.page", page);
|
||||
CTL_GET("stats.active", active);
|
||||
|
Loading…
x
Reference in New Issue
Block a user