mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
feat(server): Tracking memory usage for client tracking table (#2431)
Tracking memory usage for client tracking table using C++ memory resource and polymorphic allocator.
This commit is contained in:
parent
e06b736c02
commit
d1db48d9d4
2 changed files with 23 additions and 3 deletions
|
@ -249,7 +249,10 @@ SliceEvents& SliceEvents::operator+=(const SliceEvents& o) {
|
|||
#undef ADD
|
||||
|
||||
DbSlice::DbSlice(uint32_t index, bool caching_mode, EngineShard* owner)
|
||||
: shard_id_(index), caching_mode_(caching_mode), owner_(owner) {
|
||||
: shard_id_(index),
|
||||
caching_mode_(caching_mode),
|
||||
owner_(owner),
|
||||
client_tracking_map_(owner->memory_resource()) {
|
||||
db_arr_.emplace_back();
|
||||
CreateDb(0);
|
||||
expire_base_[0] = expire_base_[1] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue