зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1205164 - Make sure ShmemPool high water mark is logged in all allocators. r=jesup
This commit is contained in:
Родитель
8158ff2d20
Коммит
d1550b7cc5
|
@ -94,6 +94,13 @@ mozilla::ShmemBuffer ShmemPool::Get(T* aInstance, size_t aSize)
|
|||
}
|
||||
|
||||
mPoolFree--;
|
||||
#ifdef DEBUG
|
||||
size_t poolUse = mShmemPool.Length() - mPoolFree;
|
||||
if (poolUse > mMaxPoolUse) {
|
||||
mMaxPoolUse = poolUse;
|
||||
LOG(("Maximum ShmemPool use increased: %d buffers", mMaxPoolUse));
|
||||
}
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче