Avoid extra dumping for JEMALLOC_OPTIONS=L.
This commit is contained in:
parent
cd90fca928
commit
59e9be0f5f
@ -1100,11 +1100,13 @@ void
|
|||||||
arena_prof_accum(arena_t *arena, uint64_t accumbytes)
|
arena_prof_accum(arena_t *arena, uint64_t accumbytes)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (prof_interval != 0) {
|
||||||
arena->prof_accumbytes += accumbytes;
|
arena->prof_accumbytes += accumbytes;
|
||||||
if (arena->prof_accumbytes >= prof_interval) {
|
if (arena->prof_accumbytes >= prof_interval) {
|
||||||
prof_idump();
|
prof_idump();
|
||||||
arena->prof_accumbytes -= prof_interval;
|
arena->prof_accumbytes -= prof_interval;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user