diff --git a/ircd/allocator.cc b/ircd/allocator.cc index 2e3a89fc1..f8b1b84b4 100644 --- a/ircd/allocator.cc +++ b/ircd/allocator.cc @@ -507,6 +507,12 @@ ircd::allocator::aligned_alloc(const size_t &align, assert(ret != nullptr); assert(uintptr_t(ret) % alignment == 0); + #ifdef RB_PROF_ALLOC + auto &this_thread(ircd::allocator::profile::this_thread); + this_thread.alloc_bytes += size; + this_thread.alloc_count++; + #endif + return { reinterpret_cast(ret), &std::free