| 402 | } |
| 403 | |
| 404 | uint64_t PoolStats::totalFragmentation() const { |
| 405 | uint64_t n = 0; |
| 406 | for (const auto& s : cacheStats) { |
| 407 | n += s.second.fragmentationSize; |
| 408 | } |
| 409 | return n; |
| 410 | } |
| 411 | |
| 412 | uint64_t PoolStats::numActiveAllocs() const noexcept { |
| 413 | uint64_t n = 0; |
no outgoing calls