Skip to content

Commit eb3be84

Browse files
committed
Expose remote_inflight and max allocators
1 parent cc97438 commit eb3be84

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/snmalloc/mem/globalalloc.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ namespace snmalloc
164164
"bytes,slabs allocated,slabs deallocated,slabs in_use,slabs bytes");
165165
message<1024>(
166166
"snmalloc_totals,dumpid,backend bytes,peak backend "
167-
"bytes,requested,slabs requested bytes");
167+
"bytes,requested,slabs requested bytes,remote inflight bytes,allocator count");
168168
}
169169

170170
auto stats = snmalloc::get_stats<Config>();
@@ -203,11 +203,13 @@ namespace snmalloc
203203
amount_slabs);
204204
}
205205
snmalloc::message<1024>(
206-
"snmalloc_totals,{},{},{},{},{}",
206+
"snmalloc_totals,{},{},{},{},{},{},{}",
207207
l_dump,
208208
Config::Backend::get_current_usage(),
209209
Config::Backend::get_peak_usage(),
210210
total_live,
211-
total_live_slabs);
211+
total_live_slabs,
212+
RemoteDeallocCache::remote_inflight.get_curr(),
213+
Config::pool().get_count());
212214
}
213215
} // namespace snmalloc

0 commit comments

Comments
 (0)